3 ms·
It's a shame they aren't in ISO C, but strdup and strndup are at least standardized by POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/strdup.h
by loeg 8y ago
It's a shame they aren't in ISO C, but strdup and strndup are at least standardized by POSIX: http://pubs.opengroup.org/onlinepubs/9699919799/functions/strdup.html http://pubs.opengroup.org/onlinepubs/9699919799/functions/st...