28 lines
591 B
C
Executable File
28 lines
591 B
C
Executable File
/*
|
|
*
|
|
*/
|
|
|
|
#define SECUREC_FORMAT_OUTPUT_INPUT 1
|
|
#ifdef SECUREC_FOR_WCHAR
|
|
#undef SECUREC_FOR_WCHAR
|
|
#endif
|
|
|
|
#include "secinput.h"
|
|
|
|
#include "input.inl"
|
|
|
|
SECUREC_INLINE int SecIsDigit(SecInt ch)
|
|
{
|
|
/* SecInt to unsigned char clear 571, use bit mask to clear negative return of ch */
|
|
return isdigit((int)((unsigned int)(unsigned char)(ch) & 0xffU));
|
|
}
|
|
SECUREC_INLINE int SecIsXdigit(SecInt ch)
|
|
{
|
|
return isxdigit((int)((unsigned int)(unsigned char)(ch) & 0xffU));
|
|
}
|
|
SECUREC_INLINE int SecIsSpace(SecInt ch)
|
|
{
|
|
return isspace((int)((unsigned int)(unsigned char)(ch) & 0xffU));
|
|
}
|
|
|