
Click above to get retro games delivered to your door ever month!
X-Hacker.org- libc - <b>strncasecmp</b>
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
strncasecmp
===========
Syntax
------
#include <string.h>
int strncasecmp(const char *s1, const char *s2, size_t max);
Description
-----------
This function compares S1 and S2, ignoring case, up to a maximum of MAX
characters.
Return Value
------------
Zero if the strings are equal, a positive number if S1 comes after S2
in the ASCII collating sequense, else a negative number.
Example
-------
if (strncasecmp(foo, "-i", 2) == 0)
do_include();
Online resources provided by: http://www.ousob.com --- NG 2 HTML conversion by Dave Pearson