home *** CD-ROM | disk | FTP | other *** search
/ PC Extra Super CD 1998 January / PCPLUS131.iso / DJGPP / V2 / DJLSR201.ZIP / src / libc / ansi / string / strcmp.txh < prev    next >
Encoding:
Text File  |  1995-07-10  |  481 b   |  26 lines

  1. @node strcmp, string
  2. @subheading Syntax
  3.  
  4. @example
  5. #include <string.h>
  6.  
  7. int strcmp(const char *s1, const char *s2);
  8. @end example
  9.  
  10. @subheading Description
  11.  
  12. This function compares @var{s1} and @var{s2}.
  13.  
  14. @subheading Return Value
  15.  
  16. Zero if the strings are equal, a positive number if @var{s1} comes after
  17. @var{s2} in the ASCII collating sequense, else a negative number. 
  18.  
  19. @subheading Example
  20.  
  21. @example
  22. if (strcmp(arg, "-i") == 0)
  23.   do_include();
  24. @end example
  25.  
  26.