res += lc_appendable_chadd(app, pad);
/* Send the visible portion of the string to the output. */
res += lc_appendable_snadd(app, str, len);
/* If left justified, pad right. */
res += lc_appendable_chadd(app, pad);
/* Send the visible portion of the string to the output. */
res += lc_appendable_snadd(app, str, len);
/* If left justified, pad right. */
- fwrite(str, sizeof(char), n, obj->obj);
+ fwrite(str, sizeof(char), n, (FILE*)obj->obj);
}
static int str_snadd(lc_appendable_t *obj, const char *str, size_t n)
{
size_t to_write = LC_MIN(obj->limit - obj->written - 1, n);
}
static int str_snadd(lc_appendable_t *obj, const char *str, size_t n)
{
size_t to_write = LC_MIN(obj->limit - obj->written - 1, n);
strncpy(tgt + obj->written, str, to_write);
obj->written += to_write;
return to_write;
strncpy(tgt + obj->written, str, to_write);
obj->written += to_write;
return to_write;