From 690872eca26d56526c414148db97a4158eaf64f6 Mon Sep 17 00:00:00 2001 From: Nicolas Bacca Date: Sun, 11 May 2003 14:02:44 +0000 Subject: Update missing functions for HPC builds svn-id: r7450 --- backends/wince/missing/missing.cpp | 41 ++++++++++++++++++++++---------------- 1 file changed, 24 insertions(+), 17 deletions(-) (limited to 'backends/wince/missing') diff --git a/backends/wince/missing/missing.cpp b/backends/wince/missing/missing.cpp index 43d99d8a9b..4bffdd7161 100644 --- a/backends/wince/missing/missing.cpp +++ b/backends/wince/missing/missing.cpp @@ -242,7 +242,11 @@ void rewind(FILE *stream) } +#if _WIN32_WCE < 300 +char *_strdup(const char *strSource) +#else char *strdup(const char *strSource) +#endif { char* buffer; buffer = (char*)malloc(strlen(strSource)+1); @@ -391,10 +395,6 @@ void *bsearch(const void *key, const void *base, size_t nmemb, #if _WIN32_WCE < 300 || defined(_TEST_HPC_STDIO) -int _heapchk() { - return _HEAPOK; -} - void *calloc(size_t n, size_t s) { void *result = malloc(n * s); if (result) @@ -403,6 +403,22 @@ void *calloc(size_t n, size_t s) { return result; } +char *strpbrk(const char *s, const char *accept) { + int i; + + if (!s || !accept) + return NULL; + + for (i=0; i