1ustrnicmp(3)                    Allegro manual                    ustrnicmp(3)
2
3
4

NAME

6       ustrnicmp  -  Compares  up  to  n letters of two strings ignoring case.
7       Allegro game programming library.
8

SYNOPSIS

10       #include <allegro.h>
11
12
13       int ustrnicmp(const char *s1, const char *s2, int n);
14

DESCRIPTION

16       This function compares up to `n' characters of `s1' and `s2',  ignoring
17       case. Example:
18
19          if (ustrnicmp(prefix, long_string, ustrlen(prefix)) == 0) {
20             /* long_string starts with prefix (ignoring case) */
21          }
22

RETURN VALUE

24       Returns  zero if the strings are equal, a positive number if `s1' comes
25       after `s2' in the ASCII collating sequence, else a negative number.
26
27

SEE ALSO

29       uconvert(3),  ustrsize(3),   ustrsizez(3),   ustricmp(3),   ustrcmp(3),
30       ustrncmp(3)
31
32
33
34Allegro                          version 4.2.2                    ustrnicmp(3)
Impressum