sb_fprint

This commit is contained in:
2025-12-12 20:09:41 +01:00
parent 65b5905f00
commit 9398c0bf0e
4 changed files with 26 additions and 43 deletions
+10
View File
@@ -122,3 +122,13 @@ const char *sb_build(
this->tail = NULL;
return buffer;
}
void sb_fprint(string_builder_t *this, FILE *dest) {
for (
string_builder_node_t *node = this->head;
node != NULL;
node = node->next
) {
fprintf(dest, "%s", node->string);
}
}