timegm cross platform

前端 未结 5 997
忘了有多久
忘了有多久 2020-12-06 16:55

I\'m using Visual Studio c++ Compiler ( 2010 ), but the library has different implementation of ANSI C and POSIX libraries function.

What is the difference betw

5条回答
  •  心在旅途
    2020-12-06 17:35

    For most functions, that I know of, there is no difference.

    The underscore in the names is there to emphasize that these are not standard C functions: AFAIK, there are not tzset nor setenv functions in ANSI C. They are mostly POSIX functions that are implemented by the MS CRT as an aid for portability from other operating systems.

    But they don't claim POSIX compatibility, that's why the underscore. And that's why you should be careful and read the MS documentation about these functions... there are demons there!

提交回复
热议问题