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

Diff for /mandoc/Attic/test-fgetln.c between version 1.1 and 1.3

version 1.1, 2011/12/13 11:26:12 version 1.3, 2015/10/06 18:32:20
Line 1 
Line 1 
   #include <sys/types.h>
 #include <stdio.h>  #include <stdio.h>
 #include <stdlib.h>  #include <unistd.h>
   
 int  int
 main(void)  main(void)
 {  {
         char *cp;  
         size_t sz;          size_t sz;
         cp = fgetln(stdin, &sz);          fclose(stdin);
         return 0;          return fgetln(stdin, &sz) != NULL;
 }  }

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

CVSweb