PostgreSQL Source Code  git master
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros
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

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 }
char * s1
unsigned int pg_wchar
Definition: mbprint.c:31
char * s2