home *** CD-ROM | disk | FTP | other *** search
/ OS/2 Shareware BBS: 10 Tools / 10-Tools.zip / splint3s.zip / splint-3.0.1.6 / test / functionmacro.c < prev    next >
C/C++ Source or Header  |  2001-12-30  |  247b  |  20 lines

  1. #include <stdio.h>
  2.  
  3. void blah()
  4. {
  5.   int len;
  6.   
  7.   len = strlen(__FUNCTION__);
  8.   
  9.   printf("this function (%s) has a name that is %d characters long\n",
  10.      __FUNCTION__, len);
  11. }
  12.  
  13. int
  14. main()
  15. {
  16.   printf("hello from %s\n",
  17.      __FUNCTION__);
  18.   blah();
  19. }
  20.