ZestCode
 
Loading...
Searching...
No Matches
string.h File Reference

Go to the source code of this file.

Functions

char * kstrdup (const char *s)
 
char * kstrndup (const char *s, size_t n)
 

Detailed Description

Extra string functions header

See common/string.c for discussion

This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at http://mozilla.org/MPL/2.0/.

Function Documentation

◆ kstrdup()

char * kstrdup ( const char * s)

strdup but uses the kernel heap

Parameters
sPointer to the string to duplicate
Returns
The duplicate string

◆ kstrndup()

char * kstrndup ( const char * s,
size_t n )

strndup but uses the kernel heap

Parameters
sPointer to the string to duplicate
nThe number of characters to duplicate
Returns
The duplicate string