kstrndup (9) - Linux Manuals
kstrndup: allocate space for and copy an existing string
NAME
kstrndup - allocate space for and copy an existing string
SYNOPSIS
-
char * kstrndup(const char
* s, size_tmax, gfp_t gfp);
ARGUMENTS
s
-
- the string to duplicate
max
- read at most max chars from s
gfp
- the GFP mask used in the kmalloc call when allocating memory
COPYRIGHT