view doc/func.texi @ 16464:2a3849cfe7b9

Tests for module 'modf-ieee'. * modules/modf-ieee-tests: New file. * tests/test-modf-ieee.c: New file.
author Bruno Haible <>
date Sun, 26 Feb 2012 17:55:21 +0100
parents 6b25bda86ddb
line wrap: on
line source

@node func
@section 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:

#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.