tinyc.games
tinyc.games copied to clipboard
Explicitely define which version of the C standard you are aiming at.
Hello,
I would like to know which version of the C standard your code is written for.
Is it ANSI C? C99? C11?
You can use pre-defined macro like __STDC__ or __STDC_VERSION__.
For more information, see:
- GCC manual — Section 3.7.1 Standard Predefined Macros
- Pre-defined Compiler Macros wiki
-
Don Eric Heller’s CMPSC 311, Introduction to Systems Programming, “The C Standard” lecture —
CStandard.c, andCStandard.h. Other files are available in the same directory. - Dan Saks’s “‘New’ Features in C” lecture from 2019
Best regards.