Lines Matching refs:string
27 * Implementations of the functions described in vsnprintf(3C) and string(3C),
39 #include <string.h>
47 #include "string.h"
57 * Given a buffer 'buf' of size 'buflen', render as much of the string
58 * described by <fmt, args> as possible. The string will always be
59 * null-terminated, so the maximum string length is 'buflen - 1'.
61 * entire string, not including null terminator (just like vsnprintf(3S)).
179 sp = "<null string>";
529 strpbrk(const char *string, const char *brkset)
534 for (p = brkset; *p != '\0' && *p != *string; ++p)
537 return ((char *)string);
538 } while (*string++);
606 strspn(const char *string, const char *charset)
610 for (q = string; *q != '\0'; ++q) {
618 return ((size_t)(q - string));
622 strcspn(const char *string, const char *charset)
626 for (q = string; *q != '\0'; ++q) {
634 return ((size_t)(q - string));
640 * The strsep() function locates, in the string referenced by *stringp, the
641 * first occurrence of any character in the string delim (or the terminating
644 * string was reached) is stored in *stringp. The original value of
686 strtok(char *string, const char *sepset)
692 * Set `p' to our current location in the string.
694 p = (string == NULL) ? savept : string;
735 * Returns the number of non-NULL bytes in string argument,
780 * Convert a string into a valid C identifier by replacing invalid
781 * characters with '_'. Also makes sure the string is nul-terminated