URL
https://opencores.org/ocsvn/openrisc_2011-10-31/openrisc_2011-10-31/trunk
Only display areas with differences |
Details |
Blame |
View Log
Rev 207 |
Rev 345 |
/*
|
/*
|
FUNCTION
|
FUNCTION
|
<<iswxdigit>>---hexadecimal digit wide character test
|
<<iswxdigit>>---hexadecimal digit wide character test
|
|
|
INDEX
|
INDEX
|
iswxdigit
|
iswxdigit
|
|
|
ANSI_SYNOPSIS
|
ANSI_SYNOPSIS
|
#include <wctype.h>
|
#include <wctype.h>
|
int iswxdigit(wint_t <[c]>);
|
int iswxdigit(wint_t <[c]>);
|
|
|
TRAD_SYNOPSIS
|
TRAD_SYNOPSIS
|
#include <wctype.h>
|
#include <wctype.h>
|
int iswxdigit(<[c]>)
|
int iswxdigit(<[c]>)
|
wint_t <[c]>;
|
wint_t <[c]>;
|
|
|
DESCRIPTION
|
DESCRIPTION
|
<<iswxdigit>> is a function which classifies wide character values that
|
<<iswxdigit>> is a function which classifies wide character values that
|
are hexadecimal digits.
|
are hexadecimal digits.
|
|
|
RETURNS
|
RETURNS
|
<<iswxdigit>> returns non-zero if <[c]> is a hexadecimal digit wide character.
|
<<iswxdigit>> returns non-zero if <[c]> is a hexadecimal digit wide character.
|
|
|
PORTABILITY
|
PORTABILITY
|
<<iswxdigit>> is C99.
|
<<iswxdigit>> is C99.
|
|
|
No supporting OS subroutines are required.
|
No supporting OS subroutines are required.
|
*/
|
*/
|
#include <_ansi.h>
|
#include <_ansi.h>
|
#include <wctype.h>
|
#include <wctype.h>
|
|
|
int
|
int
|
_DEFUN(iswxdigit,(c), wint_t c)
|
_DEFUN(iswxdigit,(c), wint_t c)
|
{
|
{
|
return ((c >= (wint_t)'0' && c <= (wint_t)'9') ||
|
return ((c >= (wint_t)'0' && c <= (wint_t)'9') ||
|
(c >= (wint_t)'a' && c <= (wint_t)'f') ||
|
(c >= (wint_t)'a' && c <= (wint_t)'f') ||
|
(c >= (wint_t)'A' && c <= (wint_t)'F'));
|
(c >= (wint_t)'A' && c <= (wint_t)'F'));
|
}
|
}
|
|
|
|
|
© copyright 1999-2024
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.