1 /* *BSD does not have wcs functions. */
2 #if defined(FREEBSD_386) || defined(OPENBSD) || defined(DARWIN)
3 
4 #include <stdlib.h>
5 
wcslen(wchar_t * wc)6 int wcslen(wchar_t *wc)
7 {
8 	int len = 0;
9 	while (*wc++)
10 		++len;
11 	return len;
12 }
13 
wcscpy(wchar_t * dst,const wchar_t * src)14 wchar_t *wcscpy(wchar_t *dst, const wchar_t *src)
15 {
16 	wchar_t *start = dst;
17 	while ((*dst++ = *src++) != 0)
18 		;
19 	return start;
20 }
21 
22 #endif /* FREEBSD_386 || OPENBSD || DARWIN */
23