* Create a new string. * Initialized to 's' or empty if 's == NULL' */
| 323 | * Initialized to 's' or empty if 's == NULL' |
| 324 | */ |
| 325 | Dstr *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. |
no test coverage detected