You can use lint libraries to check your program for compatibility with the library functions you have called in it—the declaration of the function return type, the number and types of arguments the function expects, and so on. The standard lint libraries correspond to libraries supplied by ...
7 int i; 8 9 i = foo(i); 10 11 return i; 12 } % cc t.c -c -errtags "t.c", line 9: warning: function foo has no prototype (E_NO_MISSED_PARAMS_ALLOWED) example% #pragma no_warn_missing_parameter_infoturns off the effect of any previous#pragma warn_missing_parameter_info. ...
When the compilation system encounters a wide character constant or wide string literal, each multibyte character is converted into a wide character, as if by calling thembtowc()function. Thus, the type ofL’¥’ iswchar_t; the type ofabc¥xyzis array ofwchar_twith length eight. Just as...
Sun Studio 12 Update 1: C User's Guide Previous: 6.4.5 Second Example: Same Result Next: 6.4.7 Third Example: Integral Constants 6.4.6 Integral ConstantsAs with expressions, the rules for the types of certain integral constants have changed. In K&R C, an unsuffixed decimal constant had ...
The C compiler implements a number of extensions to the C language.2.12.1 _Restrict Keyword The C compiler supports the _Restrict keyword as an equivalent to the restrict keyword in the C99 standard. The _Restrict keyword is available with -xc99=none and -xc99=all, whereas the restrict ...
Sun Studio 12 Update 1: C User's Guide Previous: B.2.7 -Dname[(arg[,arg])][=expansion] Next: B.2.9 -dalign B.2.8-d[y|n] -dyspecifiesdynamic linking, which is the default, in the link editor. -dnspecifies static linking in the link editor. ...
Sun Studio 12 Update 1: C User's Guide 4.3.9-errchk=l(, l) Perform additionalchecking as specified byl. The default is-errchk=%none. Specifying-errchkis equivalent to specifying-errchk=%all.lis a comma-separated list of checks that consists of one or more of the following. For exampl...
Sun Studio 12 Update 1: C User's Guide Previous: 4.3.6 -c Next: 4.3.8 -err=warn 4.3.7 -dirout=dir Specifies the directory dir where the lint output files (.ln files) will be placed. This option affects the -c option.Previous: 4.3.6 -c Next: 4.3.8 -err=warn ...
Runs the source file through the preprocessor only and sends the output to stdout. The preprocessor is built directly into the compiler, except in -Xs mode, where /usr/ccs/lib/cpp is invoked. Includes the preprocessor line numbering information. See also the–P option....
Use#pragmapack(n)to affect member packing of a structure or a union. By default, members of a structure or union are aligned on their natural boundaries; one byte for a char, two bytes for a short, four bytes for an integer etc. Ifnis present, it must be a power of 2 specifying ...