ReactOS  0.4.11-dev-765-g5e024bf
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

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

Definition at line 23 of file streql.c.

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

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 }
struct S2 s2
#define TRUE
Definition: types.h:120
#define FALSE
Definition: types.h:117
#define a
Definition: ke_i.h:78
smooth NULL
Definition: ftsmooth.c:416
#define b
Definition: ke_i.h:79
struct S1 s1