Correct, and msvcrt.dll does not support C99. The new Visual C/C++ 2005 compiler does not support C99 either, it's ridiculous.
Note: Pelles C supports C99 and uses it's own runtime library.
Type: Posts; User: n7yap
Correct, and msvcrt.dll does not support C99. The new Visual C/C++ 2005 compiler does not support C99 either, it's ridiculous.
Note: Pelles C supports C99 and uses it's own runtime library.
Microsoft really needs to support C99 in VC. It's long overdue.
MinGW uses the Microsoft C Run-time library, and that library does not support C99. It requires %I64 instead of %ll for printf. The GCC compiler supports C99, with the command-line switch, so it...
Using an unsigned long long requires C99 support. C99 is the latest C Standard. I don't use GCC, but I remembered reading that you have to turn on C99 support with a command-line switch. I found the...
-std='c99' maybe?
Bit Manipulation
You could also use 'Bit Fields', do a search.
thetinman,
If your compiler supports C99, you can use lround(), it takes a double and returns a long.
CSIDL
Sorry Prelude, it wasn't you, my mistake. :o
quzah,
I didn't post any code.
quzah,
I fully support C standards, and I think C99 is great. But I also don't limit myself to standard C only.
I can see the point that when you are teaching someone C, sticking to the...
nvoigt,
Thanks for the reply. I understand.
It's not the first time Prelude has gotten on my case for posting about something that is not standard C, so it kind of struck a nerve.
Prelude,
I was not encouraging the use of fflush(stdin).
I stand by what I said.
Prelude,
I get the impression you are a moderator here. If the scope of this board is programming in Standard C only, then it should be stated in the rules or guidelines. If that is the case, then...
I wasn't aware that was a rule on this board.
If conforming to 'standard C' is a requirement, then yes, it is wrong.
Just pointing out that some compilers do support it, and that is why it is...
fflush(stdin) is not entirely wrong, it's just not 'standard C'. Many compilers do support it, like MSVC. It all depends on which compiler you are using and whether you want your program to conform...
AMD Processor Recognition
Neither does Visual C++ 2003, nor 2005. Microsoft just doesn't support C99. They are entirely focused on C++, and it seems, they could care less about C. :mad:
GetCommandLine
I believe 'Bios.h' is MS-DOS specific. I don't think you are going to find it on newer compilers.
C code compiles just fine in Visual Studio .NET if you do what Salem says.
ninjacookies,
MSVC and some others require 'I64' as follows:
printf("elapsed: %I64u\n", end - start);
Here is a description of the problem from MSDN:
http://support.microsoft.com/default.aspx?scid=kb;en-us;324767
I tried out Visual C++ 2005 Express Edition beta. I was surprised when I got compiler warnings for using standard CRT functions. Microsoft re-wrote a bunch of CRT functions to be more secure. They...
I am using MS Visual C++ 2003. I am aware of the compiler specific functions in 'strsafe.h'. I can just imagine the response if I posted code using those functions on this board. :eek: The idea was...