/osnet-11/usr/src/lib/libparted/common/lib/ |
H A D | xstrndup.c | 1 /* Duplicate a bounded initial segment of a string, with out-of-memory 23 #include <string.h> 30 xstrndup (const char *string, size_t n) argument 32 char *s = strndup (string, n);
|
/osnet-11/usr/src/lib/libgen/common/ |
H A D | strrspn.c | 33 #include <string.h> 36 * Trim trailing characters from a string. 37 * Returns pointer to the first character in the string 42 strrspn(const char *string, const char *tc) argument 46 p = (char *)string + strlen(string); 47 while (p != (char *)string)
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/crypto/ |
H A D | string_to_cksumtype.c | 31 krb5_string_to_cksumtype(char *string, krb5_cksumtype *cksumtypep) argument 36 if (strcasecmp(krb5int_cksumtypes_list[i].in_string, string) == 0) {
|
/osnet-11/usr/src/grub/grub2/grub-core/gnulib/ |
H A D | strnlen.c | 21 #include <string.h> 27 strnlen (const char *string, size_t maxlen) argument 29 const char *end = memchr (string, '\0', maxlen); 30 return end ? (size_t) (end - string) : maxlen;
|
H A D | strnlen1.c | 22 #include <string.h> 26 /* This is the same as strnlen (string, maxlen - 1) + 1. */ 28 strnlen1 (const char *string, size_t maxlen) argument 30 const char *end = (const char *) memchr (string, '\0', maxlen); 32 return end - string + 1;
|
/osnet-11/usr/src/lib/libc/port/gen/ |
H A D | pfmt_data.h | 39 char *string; member in struct:sev_tab
|
H A D | strpbrk.c | 33 #include <string.h> 39 * in the character string `string'; NULL if none exists. 42 strpbrk(const char *string, const char *brkset) argument 47 for (p = brkset; *p != '\0' && *p != *string; ++p) 50 return ((char *)string); 51 } while (*string++);
|
H A D | strtok.c | 33 #include <string.h> 44 strtok(char *string, const char *sepset) argument 50 return (strtok_r(string, sepset, lasts));
|
H A D | strcspn.c | 33 #include <string.h> 38 * of string which consists solely of characters NOT from charset. 41 strcspn(const char *string, const char *charset) argument 45 for (q = string; *q != '\0'; ++q) { 51 return (q - string);
|
H A D | strspn.c | 33 #include <string.h> 38 * of string which consists solely of characters from charset. 41 strspn(const char *string, const char *charset) argument 45 for (q = string; *q != '\0'; ++q) { 51 return (q - string);
|
H A D | addsev.c | 42 #include <string.h> 46 addsev(int severity, const char *string) argument 65 if (string == NULL) /* Removing non-existing severity */ 81 if (string == NULL) { 82 if (__pfmt_sev_tab[i].string) 83 libc_free(__pfmt_sev_tab[i].string); 85 __pfmt_sev_tab[i].string = NULL; 89 new = libc_realloc(__pfmt_sev_tab[i].string, strlen(string) + 1); 95 __pfmt_sev_tab[i].string [all...] |
H A D | strtok_r.c | 33 #include <string.h> 38 * uses strpbrk and strspn to break string into tokens on 44 strtok_r(char *string, const char *sepset, char **lasts) argument 49 if (string == NULL) 50 string = *lasts; 52 if (string == NULL) /* return if no tokens remaining */ 55 q = string + strspn(string, sepset); /* skip leading separators */
|
/osnet-11/usr/src/lib/libc/port/i18n/ |
H A D | wspbrk.c | 34 * in the wchar_t array 'string'; NULL if none exists. 45 wcspbrk(const wchar_t *string, const wchar_t *brkset) argument 50 for (p = brkset; *p && *p != *string; ++p) 53 return ((wchar_t *)string); 54 } while (*string++); 59 wspbrk(const wchar_t *string, const wchar_t *brkset) argument 61 return (wcspbrk(string, brkset));
|
H A D | wsspn.c | 37 * of string which consists solely of characters from charset. 44 wcsspn(const wchar_t *string, const wchar_t *charset) argument 48 for (q = string; *q; ++q) { 54 return (q - string); 58 wsspn(const wchar_t *string, const wchar_t *charset) argument 60 return (wcsspn(string, charset));
|
H A D | wscspn.c | 34 * of string which consists solely of characters NOT from charset. 45 wcscspn(const wchar_t *string, const wchar_t *charset) argument 49 for (q = string; *q != 0; ++q) { 55 return (q - string); 59 wscspn(const wchar_t *string, const wchar_t *charset) argument 61 return (wcscspn(string, charset));
|
H A D | wsscanf.c | 38 #include <string.h> 44 * wchar_t string according to the conversion format. 54 wsscanf(wchar_t *string, const char *format, ...) argument 63 i = wcstombs(tempstring, string, MAXINSTR); 68 tempstring = malloc(malloced = MB_CUR_MAX*wcslen(string)+1); 71 i = wcstombs(tempstring, string, malloced); /* Try again. */
|
/osnet-11/usr/src/lib/libc/port/print/ |
H A D | sprintf.c | 45 sprintf(char *string, const char *format, ...) argument 52 siop._base = siop._ptr = (unsigned char *)string; 85 _sprintf_c89(char *string, const char *format, ...) argument 91 count = _vsprintf_c89(string, format, ap);
|
H A D | vsprintf.c | 56 _vsprintf_c89(char *string, const char *format, va_list ap) argument 58 vsprintf(char *string, const char *format, va_list ap) 65 siop._base = siop._ptr = (unsigned char *)string;
|
H A D | asprintf.c | 29 #include <string.h> 39 char string[INIT_SZ]; local 45 ret = vsnprintf(string, INIT_SZ, format, ap); 52 (void) strlcpy(newstr, string, len);
|
/osnet-11/usr/src/lib/pam_modules/authtok_check/ |
H A D | stringlib.c | 20 Chop(register char *string) argument 27 for (ptr = string; *ptr; ptr++); 28 if (ptr != string) { 36 Chomp(register char *string) argument 43 for (ptr = string; *ptr; ptr++) 45 if (ptr != string && isspace(*(--ptr))) { 54 Trim(register char *string) argument 58 for (ptr = string; *ptr; ptr++); 60 while ((--ptr >= string) && isspace(*ptr));
|
/osnet-11/usr/src/lib/libcurses/screen/ |
H A D | iexpand.c | 62 * Expand a string taking terminfo sequences into consideration. 65 *iexpand(char *string) argument 71 while ((c = *string++) != 0) { 109 * Print out a string onto a stream, changing unprintables into 113 tpr(FILE *stream, char *string) argument 115 if (string != NULL) 116 (void) fprintf(stream, "%s", iexpand(string));
|
H A D | trace.c | 83 static char string[1024]; local 84 char *p1 = string; 93 return (string);
|
H A D | waddchnstr.c | 48 * Add ncols worth of data to win, using string as input. 52 waddchnstr(WINDOW *win, chtype *string, int ncols) argument 63 while (*string && remcols) { 64 sw = mbscrw((int)(_CHAR(*string))); 65 ew = mbeucw((int)(_CHAR(*string))); 69 if (waddch(win, *string++) == ERR) 76 while ((*string) && (remcols > 0) && (ncols > 0)) { 77 sw = mbscrw((int)(_CHAR(*string))); 78 ew = mbeucw((int)(_CHAR(*string))); 82 if (waddch(win, *string [all...] |
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/crypto/old/ |
H A D | des_stringtokey.c | 42 const krb5_data *string, 56 return(mit_des_string_to_key_int(context, key, string, salt)); 59 return mit_afs_string_to_key(context, key, string, salt); 40 krb5int_des_string_to_key(krb5_context context, const struct krb5_enc_provider *enc, const krb5_data *string, const krb5_data *salt, const krb5_data *parm, krb5_keyblock *key) argument
|
/osnet-11/usr/src/lib/gss_mechs/mech_krb5/krb5/os/ |
H A D | gen_rname.c | 28 * take a port-style address and unique string, and return 29 * a replay cache tag string. 36 krb5_gen_replay_name(krb5_context context, const krb5_address *address, const char *uniq, char **string) argument 43 if ((*string = malloc(len)) == NULL) 46 snprintf(*string, len, "%s", uniq); 47 tmp = *string + strlen(uniq); 49 snprintf(tmp, len - (tmp-*string), "%.2x", address->contents[i] & 0xff);
|