*
*
* IDENTIFICATION
- * $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.3 1997/03/14 23:19:54 scrappy Exp $
+ * $Header: /cvsroot/pgsql/src/backend/utils/adt/char.c,v 1.4 1997/05/17 06:20:34 thomas Exp $
*
*-------------------------------------------------------------------------
*/
{
if (arg1 == NULL || arg2 == NULL)
return((bool) 0);
- return((bool) (strncmp(arg1, arg2, 16) < 0));
+ return(strncmp(arg1, arg2, 16) < 0);
}
bool char16le(char *arg1, char *arg2)
{
if (arg1 == NULL || arg2 == NULL)
return((bool) 0);
- return((bool) (strncmp(arg1, arg2, 16) <= 0));
+ return(strncmp(arg1, arg2, 16) <= 0);
}
bool char16gt(char *arg1, char *arg2)
if (arg1 == NULL || arg2 == NULL)
return((bool) 0);
- return((bool) (strncmp(arg1, arg2, 16) > 0));
+ return(strncmp(arg1, arg2, 16) > 0);
}
bool char16ge(char *arg1, char *arg2)
if (arg1 == NULL || arg2 == NULL)
return((bool) 0);
- return((bool) (strncmp(arg1, arg2, 16) >= 0));
+ return(strncmp(arg1, arg2, 16) >= 0);
}
{
if (arg1 == NULL || arg2 == NULL)
return((bool) 0);
- return((bool) strncmp(arg1, arg2, 8) == 0);
+ return(strncmp(arg1, arg2, 8) == 0);
}
bool char8ne(char *arg1, char *arg2)
{
if (arg1 == NULL || arg2 == NULL)
return((bool) 0);
- return((bool) strncmp(arg1, arg2, 8) != 0);
+ return(strncmp(arg1, arg2, 8) != 0);
}
bool char8lt(char *arg1, char *arg2)
{
if (arg1 == NULL || arg2 == NULL)
return((bool) 0);
- return((bool) strncmp(arg1, arg2, 8) < 0);
+ return(strncmp(arg1, arg2, 8) < 0);
}
bool char8le(char *arg1, char *arg2)
{
if (arg1 == NULL || arg2 == NULL)
return((bool) 0);
- return((bool) strncmp(arg1, arg2, 8) <= 0);
+ return(strncmp(arg1, arg2, 8) <= 0);
}
bool char8gt(char *arg1, char *arg2)
{
if (arg1 == NULL || arg2 == NULL)
return((bool) 0);
- return((bool) strncmp(arg1, arg2, 8) > 0);
+ return(strncmp(arg1, arg2, 8) > 0);
}
bool char8ge(char *arg1, char *arg2)
{
if (arg1 == NULL || arg2 == NULL)
return((bool) 0);
- return((bool) strncmp(arg1, arg2, 8) >= 0);
+ return(strncmp(arg1, arg2, 8) >= 0);
}
int32 char8cmp(char *arg1, char *arg2)