install-reloc: Support multi-binary installation.
[gnulib.git] / doc / func.texi
1 @node func
2 @section func
3
4 The @code{func} module makes sure that you can use the predefined
5 identifier @code{__func__} as defined by C99 in your code.
6
7 A small example is:
8
9 @smallexample
10 #include <config.h>
11 #include <stdio.h> /* for printf */
12
13 int main (void)
14 @{
15     printf ("%s: hello world\n", __func__);
16 @}
17 @end smallexample
18
19 Note that @code{sizeof} cannot be applied to @code{__func__}: On SunPRO C
20 compiler, @code{sizeof __func__} evaluates to 0.