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