mirror of
https://https.git.savannah.gnu.org/git/gnulib.git
synced 2026-04-28 06:33:36 +00:00
* doc/Makefile (undocumented-modules.texi): New rule. (%.info, %.html, %.dvi, %.pdf): Depend on undocumented-modules.texi. (mostlyclean): Remove also *.m and *.tmp. (force): New rule. * doc/*.texi: Add module index entries. * doc/*/*.texi: Likewise.
22 lines
465 B
Plaintext
22 lines
465 B
Plaintext
@node func
|
|
@section func
|
|
|
|
@mindex func
|
|
The @code{func} module makes sure that you can use the predefined
|
|
identifier @code{__func__} as defined by C99 in your code.
|
|
|
|
A small example is:
|
|
|
|
@smallexample
|
|
#include <config.h>
|
|
#include <stdio.h> /* for printf */
|
|
|
|
int main (void)
|
|
@{
|
|
printf ("%s: hello world\n", __func__);
|
|
@}
|
|
@end smallexample
|
|
|
|
Note that @code{sizeof} cannot be applied to @code{__func__}: On SunPRO C
|
|
compiler, @code{sizeof __func__} evaluates to 0.
|