URL
https://opencores.org/ocsvn/or1k/or1k/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 40 |
Rev 1765 |
/*
|
/*
|
FUNCTION
|
FUNCTION
|
<<strcoll>>---locale specific character string compare
|
<<strcoll>>---locale specific character string compare
|
|
|
INDEX
|
INDEX
|
strcoll
|
strcoll
|
|
|
ANSI_SYNOPSIS
|
ANSI_SYNOPSIS
|
#include <string.h>
|
#include <string.h>
|
int strcoll(const char *<[stra]>, const char * <[strb]>);
|
int strcoll(const char *<[stra]>, const char * <[strb]>);
|
|
|
TRAD_SYNOPSIS
|
TRAD_SYNOPSIS
|
#include <string.h>
|
#include <string.h>
|
int strcoll(<[stra]>, <[strb]>)
|
int strcoll(<[stra]>, <[strb]>)
|
char *<[stra]>;
|
char *<[stra]>;
|
char *<[strb]>;
|
char *<[strb]>;
|
|
|
DESCRIPTION
|
DESCRIPTION
|
<<strcoll>> compares the string pointed to by <[stra]> to
|
<<strcoll>> compares the string pointed to by <[stra]> to
|
the string pointed to by <[strb]>, using an interpretation
|
the string pointed to by <[strb]>, using an interpretation
|
appropriate to the current <<LC_COLLATE>> state.
|
appropriate to the current <<LC_COLLATE>> state.
|
|
|
RETURNS
|
RETURNS
|
If the first string is greater than the second string,
|
If the first string is greater than the second string,
|
<<strcoll>> returns a number greater than zero. If the two
|
<<strcoll>> returns a number greater than zero. If the two
|
strings are equivalent, <<strcoll>> returns zero. If the first
|
strings are equivalent, <<strcoll>> returns zero. If the first
|
string is less than the second string, <<strcoll>> returns a
|
string is less than the second string, <<strcoll>> returns a
|
number less than zero.
|
number less than zero.
|
|
|
PORTABILITY
|
PORTABILITY
|
<<strcoll>> is ANSI C.
|
<<strcoll>> is ANSI C.
|
|
|
<<strcoll>> requires no supporting OS subroutines.
|
<<strcoll>> requires no supporting OS subroutines.
|
|
|
QUICKREF
|
QUICKREF
|
strcoll ansi pure
|
strcoll ansi pure
|
*/
|
*/
|
|
|
#include <string.h>
|
#include <string.h>
|
|
|
int
|
int
|
_DEFUN (strcoll, (a, b),
|
_DEFUN (strcoll, (a, b),
|
_CONST char *a _AND
|
_CONST char *a _AND
|
_CONST char *b)
|
_CONST char *b)
|
|
|
{
|
{
|
return strcmp (a, b);
|
return strcmp (a, b);
|
}
|
}
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.