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
code vault - strtail
linux - users
programming - DDE - WinWord DDE Server
MC6802 - instruction set - Copy Index Register to stack pointer
programming - target - Xlib
programming:c:function ftell
programming - C - structs _finddata_t
programming:c:function strrchr
X Windows Structures - XEvent
android command line usage
programming:cpp:Cpp Class Static data and functions
X Windows Structures - XMotionEvent
programming - c - structs - _finddata_t
programming - C - function strdup
programming - windows - WM_CREATE
programming:c:function isdigit
programming:c:function fseek
filename:programming:c:function strdup
filename:programming%3Ac%3Afunction%20strdup
last edit:April 06 2009 02:03:40 (6429 days ago)
ct = 1794509848.000000 = November 12 2026 18:57:28
ft = 1238983420.000000 = April 06 2009 02:03:40
dt = 555526428.000000