#include <linux/types.h>
#include <linux/string.h>
#include <linux/ctype.h>
#include <linux/kernel.h>
#include <linux/export.h>
#include <linux/bug.h>
#include <linux/errno.h>
Go to the source code of this file.
|
int | strnicmp (const char *s1, const char *s2, size_t len) |
|
| EXPORT_SYMBOL (strnicmp) |
|
int | strcasecmp (const char *s1, const char *s2) |
|
| EXPORT_SYMBOL (strcasecmp) |
|
int | strncasecmp (const char *s1, const char *s2, size_t n) |
|
| EXPORT_SYMBOL (strncasecmp) |
|
char * | strcpy (char *dest, const char *src) |
|
| EXPORT_SYMBOL (strcpy) |
|
char * | strncpy (char *dest, const char *src, size_t count) |
|
| EXPORT_SYMBOL (strncpy) |
|
size_t | strlcpy (char *dest, const char *src, size_t size) |
|
| EXPORT_SYMBOL (strlcpy) |
|
char * | strcat (char *dest, const char *src) |
|
| EXPORT_SYMBOL (strcat) |
|
char * | strncat (char *dest, const char *src, size_t count) |
|
| EXPORT_SYMBOL (strncat) |
|
size_t | strlcat (char *dest, const char *src, size_t count) |
|
| EXPORT_SYMBOL (strlcat) |
|
int | strcmp (const char *cs, const char *ct) |
|
| EXPORT_SYMBOL (strcmp) |
|
int | strncmp (const char *cs, const char *ct, size_t count) |
|
| EXPORT_SYMBOL (strncmp) |
|
char * | strchr (const char *s, int c) |
|
| EXPORT_SYMBOL (strchr) |
|
char * | strrchr (const char *s, int c) |
|
| EXPORT_SYMBOL (strrchr) |
|
char * | strnchr (const char *s, size_t count, int c) |
|
| EXPORT_SYMBOL (strnchr) |
|
char * | skip_spaces (const char *str) |
|
| EXPORT_SYMBOL (skip_spaces) |
|
char * | strim (char *s) |
|
| EXPORT_SYMBOL (strim) |
|
size_t | strlen (const char *s) |
|
| EXPORT_SYMBOL (strlen) |
|
size_t | strnlen (const char *s, size_t count) |
|
| EXPORT_SYMBOL (strnlen) |
|
size_t | strspn (const char *s, const char *accept) |
|
| EXPORT_SYMBOL (strspn) |
|
size_t | strcspn (const char *s, const char *reject) |
|
| EXPORT_SYMBOL (strcspn) |
|
char * | strpbrk (const char *cs, const char *ct) |
|
| EXPORT_SYMBOL (strpbrk) |
|
char * | strsep (char **s, const char *ct) |
|
| EXPORT_SYMBOL (strsep) |
|
bool | sysfs_streq (const char *s1, const char *s2) |
|
| EXPORT_SYMBOL (sysfs_streq) |
|
int | strtobool (const char *s, bool *res) |
|
| EXPORT_SYMBOL (strtobool) |
|
void * | memset (void *s, int c, size_t count) |
|
| EXPORT_SYMBOL (memset) |
|
void * | memcpy (void *dest, const void *src, size_t count) |
|
| EXPORT_SYMBOL (memcpy) |
|
void * | memmove (void *dest, const void *src, size_t count) |
|
| EXPORT_SYMBOL (memmove) |
|
int | memcmp (const void *cs, const void *ct, size_t count) |
|
| EXPORT_SYMBOL (memcmp) |
|
void * | memscan (void *addr, int c, size_t size) |
|
| EXPORT_SYMBOL (memscan) |
|
char * | strstr (const char *s1, const char *s2) |
|
| EXPORT_SYMBOL (strstr) |
|
char * | strnstr (const char *s1, const char *s2, size_t len) |
|
| EXPORT_SYMBOL (strnstr) |
|
void * | memchr (const void *s, int c, size_t n) |
|
| EXPORT_SYMBOL (memchr) |
|
void * | memchr_inv (const void *start, int c, size_t bytes) |
|
| EXPORT_SYMBOL (memchr_inv) |
|
memchr - Find a character in an area of memory. : The memory area
: The byte to search for
: The size of the area.
returns the address of the first occurrence of
, or NULL if is
not found
Definition at line 749 of file string.c.
memchr_inv - Find an unmatching character in an area of memory. : The memory area
: Find a character other than c : The size of the area.
returns the address of the first character other than
, or NULL if the whole buffer contains just
.
Definition at line 782 of file string.c.
memcmp - Compare two areas of memory : One area of memory : Another area of memory : The size of the area.
Definition at line 651 of file string.c.
memcpy - Copy one area of memory to another : Where to copy to : Where to copy from : The size of the area.
You should not use this function to access IO space, use memcpy_toio() or memcpy_fromio() instead.
Definition at line 599 of file string.c.
memmove - Copy one area of memory to another : Where to copy to : Where to copy from : The size of the area.
Unlike memcpy(), memmove() copes with overlapping areas.
Definition at line 620 of file string.c.
memscan - Find a character in an area of memory. : The memory area
: The byte to search for : The size of the area.
returns the address of the first occurrence of
, or 1 byte past the area if is
not found
Definition at line 674 of file string.c.
skip_spaces - Removes leading whitespace from . : The string to be stripped.
Returns a pointer to the first non-whitespace character in .
Definition at line 345 of file string.c.
strcat - Append one NUL-terminated string to another : The string to be appended to : The string to append to it
Definition at line 170 of file string.c.
strchr - Find the first occurrence of a character in a string : The string to be searched
: The character to search for
Definition at line 294 of file string.c.
strcmp - Compare two strings : One string : Another string
Definition at line 246 of file string.c.
strcpy - Copy a NUL terminated string : Where to copy the string to : Where to copy the string from
Definition at line 97 of file string.c.
strcspn - Calculate the length of the initial substring of which does not contain letters in : The string to be searched : The string to avoid
Definition at line 445 of file string.c.
strim - Removes leading and trailing whitespace from . : The string to be stripped.
Note that the first trailing whitespace is replaced with a NUL-terminator in the given string . Returns a pointer to the first non-whitespace character in .
Definition at line 361 of file string.c.
strlcat - Append a length-limited, NUL-terminated string to another : The string to be appended to : The string to append to it : The size of the destination buffer.
Definition at line 219 of file string.c.
strlcpy - Copy a NUL terminated string into a sized buffer : Where to copy the string to : Where to copy the string from : size of destination buffer
Compatible with *BSD: the result is always a valid NUL-terminated string that fits in the buffer (unless, of course, the buffer size is zero). It does not pad out the result like strncpy() does.
Definition at line 149 of file string.c.
strlen - Find the length of a string : The string to be sized
Definition at line 384 of file string.c.
strncat - Append a length-limited, NUL-terminated string to another : The string to be appended to : The string to append to it : The maximum numbers of bytes to copy
Note that in contrast to strncpy(), strncat() ensures the result is terminated.
Definition at line 193 of file string.c.
strnchr - Find a character in a length limited string : The string to be searched : The number of characters to be searched
: The character to search for
Definition at line 329 of file string.c.
strncmp - Compare two length-limited strings : One string : Another string : The maximum number of bytes to compare
Definition at line 270 of file string.c.
strncpy - Copy a length-limited, NUL-terminated string : Where to copy the string to : Where to copy the string from : The maximum number of bytes to copy
The result is not NUL-terminated if the source exceeds bytes.
In the case where the length of is less than that of count, the remainder of will be padded with NUL.
Definition at line 122 of file string.c.
strnicmp - Case insensitive, length-limited string comparison : One string : The other string : the maximum number of characters to compare
Definition at line 37 of file string.c.
strnlen - Find the length of a length-limited string : The string to be sized : The maximum number of bytes to search
Definition at line 401 of file string.c.
strnstr - Find the first substring in a length-limited string : The string to be searched : The string to search for : the maximum number of characters to search
Definition at line 721 of file string.c.
strpbrk - Find the first occurrence of a set of characters : The string to be searched : The characters to search for
Definition at line 469 of file string.c.
strrchr - Find the last occurrence of a character in a string : The string to be searched
: The character to search for
Definition at line 310 of file string.c.
strsep - Split a string into tokens : The string to be searched : The characters to search for
strsep() updates to point after the token, ready for the next call.
It returns empty tokens, too, behaving exactly like the libc function of that name. In fact, it was stolen from glibc2 and de-fancy-fied. Same semantics, slimmer shape. ;)
Definition at line 496 of file string.c.
strspn - Calculate the length of the initial substring of which only contain letters in : The string to be searched : The string to search for
Definition at line 418 of file string.c.
strstr - Find the first substring in a NUL terminated string : The string to be searched : The string to search for
Definition at line 695 of file string.c.
strtobool - convert common user inputs into boolean values : input string : result
This routine returns 0 iff the first character is one of 'Yy1Nn0'. Otherwise it will return -EINVAL. Value pointed to by res is updated upon finding a match.
Definition at line 549 of file string.c.
sysfs_streq - return true if strings are equal, modulo trailing newline : one string : another string
This routine returns true iff two strings are equal, treating both NUL and newline-then-NUL as equivalent string terminations. It's geared for use with sysfs input strings, which generally terminate with newlines but are compared against values without newlines.
Definition at line 523 of file string.c.