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

Diff for /mandoc/test-strcasestr.c between version 1.2 and 1.4

version 1.2, 2014/08/05 16:03:03 version 1.4, 2018/08/15 02:15:52
Line 1 
Line 1 
 #if defined(__linux__) || defined(__MINT__)  
 # define _GNU_SOURCE /* strcasestr() */  
 #endif  
   
 #include <string.h>  #include <string.h>
   
 int  int
Line 9  main(void)
Line 5  main(void)
 {  {
         const char *big = "BigString";          const char *big = "BigString";
         char *cp = strcasestr(big, "Gst");          char *cp = strcasestr(big, "Gst");
         return(big + 2 != cp);          return cp != big + 2;
 }  }

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

CVSweb