strdup visibility
Marco Atzeri
marco.atzeri@gmail.com
Mon Feb 8 03:04:18 GMT 2021
Hy Guys,
currently we have in /usr/include/string.h
#if __MISC_VISIBLE || __POSIX_VISIBLE >= 200809 || __XSI_VISIBLE >= 4
char *strdup (const char *) __malloc_like __result_use_check;
#endif
but the function was moved to POSIX base some time ago
https://pubs.opengroup.org/onlinepubs/9699919799/functions/strdup.html
should the conditional dropped ? Or I misunderstand it?
Regards
Marco
More information about the Cygwin-developers
mailing list