wstrncmp.c File Reference
Include dependency graph for wstrncmp.c:
Go to the source code of this file.
Function Documentation
◆ pg_char_and_wchar_strncmp()
int pg_char_and_wchar_strncmp
(
const char *
s1,
size_t
n
)
Definition at line 55 of file wstrncmp.c.
56{
57 if (n == 0)
58 return 0;
59 do
60 {
64 break;
65 } while (--n != 0);
66 return 0;
67}
References s1, and s2.
Referenced by element(), and lookupcclass().
◆ pg_wchar_strlen()
size_t pg_wchar_strlen
(
const
pg_wchar *
str )
◆ pg_wchar_strncmp()
int pg_wchar_strncmp
(
const
pg_wchar *
s1,
size_t
n
)
Definition at line 40 of file wstrncmp.c.
41{
42 if (n == 0)
43 return 0;
44 do
45 {
47 return (*
s1 - *(
s2 - 1));
49 break;
50 } while (--n != 0);
51 return 0;
52}
References s1, and s2.