Finally, fflush () is used ()

Source: Internet
Author: User

Today I encountered a "strange thing ":ProgramThousands of logs can be normally output and all logs can be output. However, when redirected to a file, there are always dozens of logs missing. The output is similar to logs and logs.

 

Later, Xiao Wu told me that it was a matter of row buffering. That's true. Just add fflush.

 

Why is this problem?

1. We want to implement ISAKMP's elliptic curve key exchange, so we need to first implement the basic operation of the elliptic curve, that is, points + points and points * points. The SEC test data is used, but the result is always incorrect. Therefore, the debugging information is added during each operation to output the operation result;

2. I finally got it right today, so I can see the missing information for the last few days.

 

During the spec160r1 test, I got an elliptic curve for more than a week.

Write down this formula: A mod B =

-B * (A/B)

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.