| STRDUP(3ast) | STRDUP(3ast) |
NAME
strdup - duplicate null-terminated string
SYNOPSIS
char* strdup(const char* s)
DESCRIPTION
strdup copies the null-terminated string s to a new location provided by malloc(3) and returns a pointer to the new copy. 0 is returned if malloc(3) failed.