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

Function dStr_new

dlib/dlib.c:325–331  ·  view source on GitHub ↗

* Create a new string. * Initialized to 's' or empty if 's == NULL' */

Source from the content-addressed store, hash-verified

323 * Initialized to 's' or empty if 's == NULL'
324 */
325Dstr *dStr_new (const char *s)
326{
327 Dstr *ds = dStr_sized_new(0);
328 if (s && *s)
329 dStr_append(ds, s);
330 return ds;
331}
332
333/**
334 * Free a dillo string.

Callers 15

Cookies_getFunction · 0.85
File_prepare_send_dirFunction · 0.85
Bms_check_importFunction · 0.85
Bms_saveFunction · 0.85
Bmsrv_send_modify_pageFunction · 0.85
Bmsrv_send_modify_updateFunction · 0.85
send_bm_pageFunction · 0.85
a_Bw_newFunction · 0.85
a_Digest_compute_digestFunction · 0.85
Digest_create_responseFunction · 0.85
parseValueMethod · 0.85

Calls 2

dStr_sized_newFunction · 0.85
dStr_appendFunction · 0.85

Tested by

no test coverage detected