C99(1)

πŸ“¦
version 15.2.0 Β· 3 versions
, in ubuntu questing

πŸŽ€ General Commands Manual: C99(1) πŸŽ€

✨ NAME ✨

c99 is an ANSI (1999) C compiler πŸ’–

πŸ‘‘ SYNOPSIS πŸ‘‘

c99 [-pedantic] [-pedantic-errors] [-D_ANSI_SOURCE] options ...

πŸ¦‹ DESCRIPTION πŸ¦‹

okay so c99 basically calls the C compiler (cc) for you and passes along whatever options you give it πŸ’… The big difference is that it sets things up for a C language environment that's compatible with the -ansiC spec, so you're writing strict, standards-following C bestie 🫢

it's giving proper trigraph handling ✨ and it also turns off the non-ANSI compiler stuff, like asm, inline, typeof, and the $ character in identifiers. no cap, that's a whole glow-up 🌸 On top of that, it defines the preprocessor symbol __STRICT_ANSI__ πŸ”₯

the status of the C99 features that GCC has implemented is written up at http://gcc.gnu.org/gcc-15/c99status.html 🌈

🧚 SEE ALSO 🧚

cc(1) has the full rundown on every option πŸ“

🌸 HISTORY 🌸

this bad boy first showed up in NetBSD 1.4 ✨

πŸ™ˆ BUGS πŸ™ˆ

😭 heads up: c99 is just a shell wrapper script around cc, so when something fails to compile, the error messages come out prefixed with "cc:". not me getting confused by that at 2am πŸ’€

ok that's the tea, bestie πŸ’œ this was C99(1), straight from the General Commands Manual, and it's a wrap πŸŽ€βœ¨

πŸ“¦ where this page comes from