programming:c:function strdupWhat links here?

Description

The strdup() function allocates memory and copies into it the string addressed by s1, including the terminating null character. It is the user's responsibility to free the allocated storage by calling free().

Syntax

char *strdup(const char *s1)


Parameters



Return Values

On success, strdup() returns a pointer to a newly allocated copy of the string s1. On failure, strdup() returns a null pointer and sets errno as follows:

programming:c:function strdup
programming - javascript - methods - unshift
Programming - Pascal - function - format
programming:c:functions:_splitpath
programming - sqlite3 - c interface - sqlite3_step()
programming - pascal - function - copy
programming - C - function strncpy
programming:c:function fgetc
programming - C - function getc
programming:c:function getchar
programming:c:function ispunct
programming - C - function strcpy
programming:c:function fputc
programming - pascal - function - length
programming:c:function isupper
programming - sqlite3 - data types
programming:c:function isgraph
programming - C - function strdup
filename:programming:c:function strdup
filename:programming%3Ac%3Afunction%20strdup
last edit:April 05 2009 22:03:40 (6004 days ago)
ct = 1757738626.000000 = September 13 2025 00:43:46
ft = 1238983420.000000 = April 05 2009 22:03:40
dt = 518755206.000000