Header And Logo

PostgreSQL
| The world's most advanced open source database.

Functions

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.

{
    while ((pg_wchar) *s1 == *s2++)
        if (*s1++ == 0)
            return 0;
    return *(const unsigned char *) s1 - *(const pg_wchar *) (s2 - 1);
}