ReactOS 0.4.15-dev-7788-g1ad9096
streql.c File Reference
#include <schily/standard.h>
#include <schily/schily.h>
Include dependency graph for streql.c:

Go to the source code of this file.

Functions

EXPORT int streql (char *a, const char *b) const
 

Function Documentation

◆ streql()

EXPORT int streql ( char a,
const char b 
) const

Definition at line 23 of file streql.c.

26{
27 register const char *s1 = a;
28 register const char *s2 = b;
29
30 if (s1 == NULL || s2 == NULL)
31 return (FALSE);
32
33 if (s1 == s2)
34 return (TRUE);
35
36 while (*s1 == *s2++)
37 if (*s1++ == '\0')
38 return (TRUE);
39
40 return (FALSE);
41}
#define NULL
Definition: types.h:112
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define a
Definition: ke_i.h:78
#define b
Definition: ke_i.h:79
struct S1 s1
struct S2 s2

Referenced by framehandle(), get_boot_platid(), and searchonefile().