Fuck, bastard wfopen_s Function

Source: Internet
Author: User

Fuck, bastard wfopen_s function.

Open a file in r mode. the result data is always 1 different from the file. For example, if npdata [10] points to [11], the previous data is correct, that is, a certain number is wrong, later, I took a closer look at 0d0d0a read and then I had to eat a 0d.

Later, I read the document. Next door:

If T or B is not given in mode, the default translation mode is defined by the global variable _ fmode.

It turns out that t is not specified when I open it. The result of B is set to translation mode.

It will be okay if you change it!

It took me a few hours!

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.