curl_strequal.3 1.2 KB

1234567891011121314151617181920212223242526272829303132
  1. .\" $Id$
  2. .\"
  3. .TH curl_strequal 3 "30 April 2004" "libcurl 7.12" "libcurl Manual"
  4. .SH NAME
  5. curl_strequal, curl_strnequal - case insensitive string comparisons
  6. .SH SYNOPSIS
  7. .B #include <curl/curl.h>
  8. .sp
  9. .BI "int curl_strequal(char *" str1 ", char *" str2 ");"
  10. .sp
  11. .BI "int curl_strenqual(char *" str1 ", char *" str2 ", size_t " len ");"
  12. .SH DESCRIPTION
  13. The
  14. .B curl_strequal()
  15. function compares the two strings \fIstr1\fP and \fIstr2\fP, ignoring the case
  16. of the characters. It returns a non-zero (TRUE) integer if the strings are
  17. identical.
  18. .sp
  19. The \fBcurl_strnequal()\fP function is similar, except it only compares the
  20. first \fIlen\fP characters of \fIstr1\fP.
  21. .sp
  22. These functions are provided by libcurl to enable applications to compare
  23. strings in a truly portable manner. There are no standard portable case
  24. insensitive string comparison functions. These two work on all platforms.
  25. .SH AVAILABILITY
  26. These functions will be removed from the public libcurl API in a near
  27. future. They will instead be made "available" by source code access only, and
  28. then as curlx_strequal() and curlx_strenqual().
  29. .SH RETURN VALUE
  30. Non-zero if the strings are identical. Zero if they're not.
  31. .SH "SEE ALSO"
  32. .BR strcmp "(3), " strcasecmp "(3)"