OpenCores
URL https://opencores.org/ocsvn/openrisc/openrisc/trunk

Subversion Repositories openrisc

[/] [openrisc/] [tags/] [gnu-src/] [newlib-1.18.0/] [newlib-1.18.0-or32-1.0rc2/] [newlib/] [libc/] [string/] [strcoll.c] - Diff between revs 207 and 520

Only display areas with differences | Details | Blame | View Log

Rev 207 Rev 520
/*
/*
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);
}
}
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.