MCPcopy Create free account
hub / github.com/dillo-browser/dillo / dStrconcat

Function dStrconcat

dlib/dlib.c:102–117  ·  view source on GitHub ↗

* Concatenate a NULL-terminated list of strings */

Source from the content-addressed store, hash-verified

100 * Concatenate a NULL-terminated list of strings
101 */
102char *dStrconcat(const char *s1, ...)
103{
104 va_list args;
105 char *s, *ns = NULL;
106
107 if (s1) {
108 Dstr *dstr = dStr_sized_new(64);
109 va_start(args, s1);
110 for (s = (char*)s1; s; s = va_arg(args, char*))
111 dStr_append(dstr, s);
112 va_end(args);
113 ns = dstr->str;
114 dStr_free(dstr, 0);
115 }
116 return ns;
117}
118
119/**
120 * Remove leading and trailing whitespace

Callers 15

Cookies_initFunction · 0.85
Cookies_getFunction · 0.85
Cookie_control_initFunction · 0.85
DLItemMethod · 0.85
File_dillodir_newFunction · 0.85
File_normalize_pathFunction · 0.85
datauri_get_mimeFunction · 0.85
Bms_check_importFunction · 0.85
Bms_saveFunction · 0.85
mainFunction · 0.85
mainFunction · 0.85
dGethomedirFunction · 0.85

Calls 3

dStr_sized_newFunction · 0.85
dStr_appendFunction · 0.85
dStr_freeFunction · 0.85

Tested by

no test coverage detected