Go to the source code of this file.
Functions | |
| char * | kstrdup (const char *s) |
| char * | kstrndup (const char *s, size_t n) |
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/.
| char * kstrdup | ( | const char * | s | ) |
strdup but uses the kernel heap
| s | Pointer to the string to duplicate |
| char * kstrndup | ( | const char * | s, |
| size_t | n ) |
strndup but uses the kernel heap
| s | Pointer to the string to duplicate |
| n | The number of characters to duplicate |