Locale-Sensitive C/C++ String Operation Function
char *strdupa(const char *s);
Internationalization (I18n) Function Overview
This macro is similar to strdup but allocates the new string using alloca instead of malloc . This means of course the returned string has the same limitations as any block of memory allocated using alloca .
I18n Issues
There is no ANSI wide character version of this function. One option is to implement your own function. Another is to convert your logic to use wcsdup , which essentially means that memory will be allocated with malloc instead of alloca , so you will have to remember to free the duplicated string when appropriate.
Recommended Replacements*
*If you're already using the recommended function, see I18n Issues for other reasons why Globalyzer is detecting the function.
Locale-Sensitive C/C++ String Operation Functions

|