1 /***************************************************************
3 ***************************************************************/
6 #include "wince.h" /* for wce_mbtowc */
8 /* _strdup already exists in stdlib.h? */
9 char *strdup(const char * str
)
13 p
= malloc( strlen(str
)+1 );
18 char* strerror(int errno
)
20 static char buf
[32]="wince::strerror called.";
24 /* strnicmp already exists in stdlib.h? */
25 int strnicmp( const char *s1
, const char *s2
, size_t count
)
33 n
= wcsnicmp(w1
, w2
, count
);
42 #include "..\missing\strtoul.c"
44 char *strrchr( const char *p
, int c
)
47 for( pp
=(char*)p
+strlen(p
); pp
!=p
; pp
-- )
51 return pp
==p
? NULL
: pp
;
54 int stricmp( const char *s1
, const char *s2
)
70 char *strpbrk(const char *str
, const char *cs
)
72 wchar_t *wstr
, *wcs
, *w
;
75 wstr
= wce_mbtowc(str
);
78 w
= wcspbrk(wstr
, wcs
);
81 s
= str
+ (wcs
-wstr
)/sizeof(wchar_t);