curl_strequal.3 1.1 KB

12345678910111213141516171819202122232425262728293031
  1. .\" You can view this file with:
  2. .\" nroff -man [file]
  3. .\" $Id: curl_strequal.3,v 1.1 2002/03/04 10:09:49 bagder Exp $
  4. .\"
  5. .TH curl_strequal 3 "20 April 2001" "libcurl 7.7.2" "libcurl Manual"
  6. .SH NAME
  7. curl_strequal, curl_strnequal - case insensitive string comparisons
  8. .SH SYNOPSIS
  9. .B #include <curl/curl.h>
  10. .sp
  11. .BI "int curl_strequal(char *" str1 ", char *" str2 ");"
  12. .sp
  13. .BI "int curl_strenqual(char *" str1 ", char *" str2 ", size_t " len ");"
  14. .SH DESCRIPTION
  15. The
  16. .B curl_strequal()
  17. function compares the two strings \fIstr1\fP and \fIstr2\fP, ignoring the case
  18. of the characters. It returns a non-zero (TRUE) integer if the strings are
  19. identical.
  20. .sp
  21. The \fBcurl_strnequal()\fP function is similar, except it only compares the
  22. first \fIlen\fP characters of \fIstr1\fP.
  23. .sp
  24. These functions are provided by libcurl to enable applications to compare
  25. strings in a truly portable manner. There are no standard portable case
  26. insensitive string comparison functions. These two works on all platforms.
  27. .SH RETURN VALUE
  28. Non-zero if the strings are identical. Zero if they're not.
  29. .SH "SEE ALSO"
  30. .BR strcmp "(3), " strcasecmp "(3)"