22 |
#include <config.h> |
#include <config.h> |
23 |
#endif |
#endif |
24 |
|
|
25 |
|
#include <windows.h> |
26 |
#include <string.h> |
#include <string.h> |
27 |
#include <stdlib.h> |
#include <stdlib.h> |
28 |
#include <stdio.h> |
#include <stdio.h> |
29 |
#include <ctype.h> |
#include <ctype.h> |
30 |
|
|
31 |
|
#include "wptTypes.h" |
32 |
|
|
33 |
/* code taken from glibc-2.2.1/sysdeps/generic/strsep.c */ |
/* code taken from glibc-2.2.1/sysdeps/generic/strsep.c */ |
34 |
char* |
char* |
35 |
strsep (char **stringp, const char *delim) |
strsep (char **stringp, const char *delim) |
187 |
out[i] = 0; |
out[i] = 0; |
188 |
*r_out = out; |
*r_out = out; |
189 |
} |
} |
190 |
|
|
191 |
|
char* |
192 |
|
m_strdup (const char *str) |
193 |
|
{ |
194 |
|
char *p = new char[strlen (str)+1]; |
195 |
|
if (!p) |
196 |
|
BUG (0); |
197 |
|
strcpy (p, str); |
198 |
|
return p; |
199 |
|
} |