1 2 3 4 5 6 7 8 9 10 11 | herr_t
ss_string_set(ss_string_t *str, /* The destination persistent string. */
const char *s /* The source C string to copy. */
)
{
SS_ENTER(ss_string_set, herr_t);
if (ss_string_splice(str, s, 0, s?strlen(s)+1:0, str->nbytes)<0) SS_ERROR(FAILED);
SS_CLEANUP:
SS_LEAVE(0);
}
|