Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR C

kstrdup

 
kstrdup — allocate space for and copy an existing string

Synopsis
char * kstrdup (const char * s, gfp_t gfp);
 
Arguments
const char * s
the string to duplicate

gfp_t gfp
the GFP mask used in the kmalloc call when allocating memory
 
PREVIOUS NEXT
Tagged: #kstrdup
ADD COMMENT
Topic
Name
2+6 =