4 * From linux/lib/string.h :
6 * Copyright (C) 1991, 1992 Linus Torvalds
10 * stupid library routines.. The optimized versions should generally be found
11 * as inline code in <asm-xx/string.h>
13 * These are buggy as well..
15 * * Fri Jun 25 1999, Ingo Oeser <ioe@informatik.tu-chemnitz.de>
16 * - Added strsep() which will replace strtok() soon (because strsep() is
17 * reentrant and should be faster). Use only strsep() in new code, please.
23 /* Get size_t, and NULL from <stddef.h>. */
24 #undef __need_malloc_and_calloc
31 * memcpy - Copy one area of memory to another
32 * @dest: Where to copy to
33 * @src: Where to copy from
34 * @count: The size of the area.
36 void * memcpy(void *dest, const void *src, size_t count);
39 * memset - Fill a region of memory with the given value
40 * @s: Pointer to the start of the area.
41 * @c: The byte to fill the area with
42 * @count: The size of the area.
44 void * memset(void * s, int c, size_t count);
47 * strcpy - Copy a %NUL terminated string
48 * @dest: Where to copy the string to
49 * @src: Where to copy the string from
51 char * strcpy(char * dest, const char *src);
54 * strncpy - Copy a length-limited, %NUL-terminated string
55 * @dest: Where to copy the string to
56 * @src: Where to copy the string from
57 * @count: The maximum number of bytes to copy
59 * Note that unlike userspace strncpy, this does not %NUL-pad the buffer.
60 * However, the result is not %NUL-terminated if the source exceeds
63 char * strncpy(char * dest, const char *src, size_t count);
66 * strcmp - Compare two strings
70 int strcmp(const char * cs, const char * ct);
73 * strncmp - Compare two length-limited strings
76 * @count: The maximum number of bytes to compare
78 int strncmp(const char * cs, const char * ct, size_t count);
81 * strchr - Find the first occurrence of a character in a string
82 * @s: The string to be searched
83 * @c: The character to search for
85 char * strchr(const char * s, int c);
88 * strlen - Find the length of a string
89 * @s: The string to be sized
91 size_t strlen(const char * s);
94 * strrchr - Find the last occurrence of a character in a string
95 * @s: The string to be searched
96 * @c: The character to search for
98 char * strrchr(const char * s, int c);
101 * strnlen - Find the length of a length-limited string
102 * @s: The string to be sized
103 * @count: The maximum number of bytes to search
105 size_t strnlen(const char * s, size_t count);
108 #endif /* LIB_STRING_H */