src/hidapi/mac/hid.c
/* Implementation of wcsdup() for Mac. */
Implementation of wcsdup() for Mac.
Implementation of wcsdup () for Mac .
static wchar_t *dup_wcs(const wchar_t *s)
{
	size_t len = wcslen(s);
	wchar_t *ret = (wchar_t *)malloc((len+1)*sizeof(wchar_t));
	wcscpy(ret, s);
	return ret;
}
static wchar_t * dup_wcs ( const wchar_t * s ) { size_t len = wcslen ( s ) ; wchar_t * ret = ( wchar_t * ) malloc ( ( len + 1 ) * sizeof ( wchar_t ) ) ; wcscpy ( ret , s ) ; return ret ; }
Implementation of wcsdup() for Mac.
Implementation of wcsdup () for Mac .