C11(1) General Commands Manual C11(1)

c11
ANSI (2011) C compiler

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

Calls the C compiler (cc) with the given options, using a C language environment compatible with the ISO/IEC 9899:2011 (“ISO C11”) specification.

This includes alignment specification (_Alignas specifier, _Alignof operator), the _Noreturn function specifier, type-generic expressions using the _Generic keyword, multi-threading support, improved unicode handling, anonymous structures and unions, static assertions, exclusive create-and-open mode for fopen(3), the quick_exit(3) function performing minimal cleanup, macros for construction of complex values.

The following options are available:

Issue extra warnings defined by ANSI for use of non-ANSI features.
Issue errors instead of warnings that normally would be presented by -pedantic.
Tell the system header file set to use an ANSI-conformant "clean" namespace.

cc(1)

c11 is a NetBSD extension.

c11 first appeared in NetBSD 8.0.

Since c11 is a shell wrapper script to cc, compile errors are prefixed by “cc:”.
October 2, 2016 NetBSD 9.2