strexpected2 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142
  1. 2010-09-20 STRCMP(3)
  2. #include <string.h>
  3. (at most) n characters of s1 and s2.
  4. SVr4, 4.3BSD, C89, C99.
  5. The strcmp() function compares the two strings s1 and s2. It returns
  6. The strncmp() function is similar, except it only compares the first
  7. The strcmp() and strncmp() functions return an integer less than, equal
  8. This page is part of release 3.35 of the Linux man-pages project. A
  9. an integer less than, equal to, or greater than zero if s1 is found,
  10. bcmp(3), memcmp(3), strcasecmp(3), strcoll(3), string(3), strn†be found at http://man7.org/linux/man-pages/.
  11. casecmp(3), strverscmp(3), wcscmp(3), wcsncmp(3)
  12. description of the project, and information about reporting bugs, can
  13. int strcmp(const char *s1, const char *s2);
  14. int strncmp(const char *s1, const char *s2, size_t n);
  15. respectively, to be less than, to match, or be greater than s2.
  16. respectively, to be less than, to match, or be greater than s2.
  17. strcmp, strncmp - compare two strings
  18. to, or greater than zero if s1 (or the first n bytes thereof) is found,
  19. COLOPHON
  20. CONFORMING TO
  21. DESCRIPTION
  22. NAME
  23. RETURN VALUE
  24. SEE ALSO
  25. STRCMP(3) Linux Programmer's Manual STRCMP(3)
  26. SYNOPSIS