Added RTL functions missing from WinCE to wxchar.h/cpp
git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@21987 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775
This commit is contained in:
@@ -1408,3 +1408,31 @@ int isascii( int c )
|
||||
}
|
||||
#endif // __MWERKS__
|
||||
|
||||
#ifdef __WXWINCE__
|
||||
char* strdup(const char* s)
|
||||
{
|
||||
char *dest = (char*) malloc( strlen( s ) + 1 ) ;
|
||||
if ( dest )
|
||||
strcpy( dest , s ) ;
|
||||
return dest ;
|
||||
}
|
||||
|
||||
void *calloc( size_t num, size_t size )
|
||||
{
|
||||
void** ptr = (void **)malloc(num * size);
|
||||
memset( ptr, 0, num * size);
|
||||
return ptr;
|
||||
}
|
||||
|
||||
int isspace(int c)
|
||||
{
|
||||
return (c == ' ');
|
||||
}
|
||||
|
||||
int isascii( int c )
|
||||
{
|
||||
return ( c >= 0 && c < 128 ) ;
|
||||
}
|
||||
#endif
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user