PostgreSQL Source Code git master
wstrcmp.c File Reference
#include "postgres_fe.h"
#include "mb/pg_wchar.h"
Include dependency graph for wstrcmp.c:

Go to the source code of this file.

Functions

int pg_char_and_wchar_strcmp (const char *s1, const pg_wchar *s2)
 

Function Documentation

◆ pg_char_and_wchar_strcmp()

int pg_char_and_wchar_strcmp ( const char *  s1,
const pg_wchar s2 
)

Definition at line 41 of file wstrcmp.c.

42{
43 while ((pg_wchar) *s1 == *s2++)
44 if (*s1++ == 0)
45 return 0;
46 return *(const unsigned char *) s1 - *(const pg_wchar *) (s2 - 1);
47}
unsigned int pg_wchar
Definition: mbprint.c:31
char * s1
char * s2

References s1, and s2.