[BACK]Return to test-progname.c CVS log [TXT][DIR] Up to [cvsweb.bsd.lv] / mandoc

Diff for /mandoc/test-progname.c between version 1.1 and 1.2

version 1.1, 2015/10/11 21:12:55 version 1.2, 2015/11/06 16:30:33
Line 1 
Line 1 
 #include <string.h>  #include <stdlib.h>
   
 extern char *__progname;  
   
 int  int
 main(void)  main(void)
 {  {
         return !!strcmp(__progname, "test-progname");          const char * progname;
   
           progname = getprogname();
           return progname == NULL;
 }  }

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.2

CVSweb