Lines Matching +defs:new +defs:string
37 #include <string.h>
68 countstring(char *string)
72 if (string != NULL)
73 stringlen = (uint32_t)strlen(string);
80 putstring(uint8_t *outbuf, char *string)
84 if (string != NULL) {
85 stringlen = (uint32_t)strlen(string);
88 memcpy(outbuf, string, stringlen);
587 * the target string is long enough for the
844 * Create a new environment with a definition of
1021 char buf[MAXOPTSLEN], new[MAXOPTSLEN];
1024 new[0] = '\0';
1033 if (new[0] != '\0')
1034 (void) strlcat(new, ",", sizeof(new));
1035 (void) strlcat(new, p, sizeof(new));
1039 (void) strlcpy(opts, new, AUTOFS_MAXOPTSLEN);
1056 char *new = NULL;
1085 /* "," for each new option plus the trailing NUL */
1088 new = malloc(len);
1089 if (new == 0)
1092 if ((error = CHECK_STRCPY(new, *mapentopts, len))) {
1125 if (*new != '\0') {
1126 if ((error = CHECK_STRCAT(new, ",", len))) {
1131 if ((error = CHECK_STRCAT(new, "no", len))) {
1135 error = CHECK_STRCAT(new, mopts_restrict[i].m_option, len);
1141 if (new) {
1142 free(new);
1144 new = NULL;
1146 *mapentopts = new;