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

Function dStr_append_c

dlib/dlib.c:349–363  ·  view source on GitHub ↗

* Append one character. */

Source from the content-addressed store, hash-verified

347 * Append one character.
348 */
349void dStr_append_c (Dstr *ds, int c)
350{
351 char cs[2];
352
353 if (ds) {
354 if (ds->sz > ds->len + 1) {
355 ds->str[ds->len++] = (Dstr_char_t)c;
356 ds->str[ds->len] = 0;
357 } else {
358 cs[0] = (Dstr_char_t)c;
359 cs[1] = 0;
360 dStr_append_l (ds, cs, 1);
361 }
362 }
363}
364
365/**
366 * Truncate a Dstr to be 'len' bytes long.

Callers 15

Escape_uri_strFunction · 0.85
Escape_html_strFunction · 0.85
dStr_printableFunction · 0.85
dGetlineFunction · 0.85
a_Dpip_build_cmdFunction · 0.85
a_Misc_rdtagFunction · 0.85
parseValueMethod · 0.85
bugMessageMethod · 0.85
a_Html_parse_entitiesFunction · 0.85
Html_process_wordFunction · 0.85
Html_get_attr2Function · 0.85

Calls 1

dStr_append_lFunction · 0.85

Tested by

no test coverage detected