Table B-1, lists the lint-style comments available with the Silicon Graphics C compiler, along with a short description. See the lint(1) reference page for more details.
Table B-1. lint-style Comments
Comment | Short Description |
---|---|
/*PRINTFLIKEn*/ | Applies lint-style check to the first (n-1) arguments as usual. The nth argument is interpreted as a printf format string that is used to check the remaining arguments. |
/*SCANFLIKEn*/ | Applies lint-style check to the first (n-1) arguments as usual. The nth argument is interpreted as a scanf format string that is used to check the remaining arguments. |
/*ARGSUSEDn*/ | Applies lint-style check to only the first n arguments for usage; a missing n is taken to be 0 (this option acts like the -v option for the next function). |
/*VARARGSn*/ | Suppresses the usual checking for variable numbers of arguments in the following function declaration. The data types of the first n arguments are checked; a missing n is taken to be 0. The use of the ellipsis terminator (...) in the definition is suggested in new or updated code. |
/*NOTREACHED*/ | Stops comments about unreachable code when placed at appropriate points. (This comment is typically placed just after calls to functions like exit). |
/*REFERENCED*/ | Tells the compiler that the variable defined after comment is referenced. |