Lines Matching refs:src
102 strncpy_DYN(DYNBUF * dst, const char *src, size_t need)
109 (void) strncpy(dst->text + dst->used, src, need);
115 strcpy_DYN(DYNBUF * dst, const char *src)
117 if (src == 0) {
121 strncpy_DYN(dst, src, strlen(src));
380 wrap_concat(const char *src)
382 int need = strlen(src);
389 strcpy_DYN(&outbuf, src);
410 termcap_length(const char *src)
415 const char *const t = src + strlen(src);
417 while (*src != '\0') {
418 IGNORE_SEP_TRAIL(src, t, pattern);
419 src++;
425 #define termcap_length(src) strlen(src)
429 fmt_complex(char *src, int level)
433 bool if_then = strstr(src, "%?") != 0;
434 bool params = !if_then && (strlen(src) > 50) && (strstr(src, "%p") != 0);
436 while (*src != '\0') {
437 switch (*src) {
440 strncpy_DYN(&tmpbuf, src++, 1);
452 if (!strncmp(src, "e%?", 3)) {
456 strncpy_DYN(&tmpbuf, src, 3);
457 src += 3;
462 strncpy_DYN(&tmpbuf, src, 1);
463 if (*src++ == '?') {
464 src = fmt_complex(src, level + 1);
466 _nc_warning("%%%c without %%?", *src);
480 strncpy_DYN(&tmpbuf, src++, 1);
481 return src;
499 strncpy_DYN(&tmpbuf, src++, 1);
501 return src;
717 char *src = _nc_tic_expand(capability,
726 fmt_complex(src, 1);
728 strcpy_DYN(&tmpbuf, src);