| Red Hat Documentation: man pages: man3: Linux Programmer's Manual (3) |
STRDUPSection: Linux Programmer's Manual (3)Updated: April 12, 2025 Index NAMEstrdup - duplicate a stringSYNOPSIS#include <string.h> char *strdup(const char *s); DESCRIPTIONThe strdup() function returns a pointer to a new string which is a duplicate of the string s. Memory for the new string isRETURN VALUEThe strdup() function returns a pointer to the duplicated string, or NULL if insufficient memory was available.ERRORS
CONFORMING TOSVID 3, BSD 4.3SEE ALSO
IndexThis document was created by using the manual pages. Time: 11:58:06 GMT, March 24, 2025 |
|
© 2001 Red Hat, Inc. All rights reserved. About Red Hat : Legal statement : Privacy statement : Y2K statement : Contact Red Hat |