[2023-08-27 22:00] David Levine <levin...@acm.org> > Philipp wrote: > > > [2023-08-27 09:29] David Levine <levin...@acm.org> > > > > > > My only comment on the code itself is that I prefer functions that > > > just do one thing. So I would implement a fold function that just > > > modifies a string, and leave the fprintf/fwrite to output_headers(). > > > > I have thought about this, but this would require fold() to allocate memory. > > Because the plan was to use fold() in output_headers() I though this could > > be avoided. > > I don't think that allocating memory is a drawback.
I first wrote a long text about the missing string abstraction, then I found charstring_t. I'll adjust this a few days. One question about charstring_t: Why does charstring_push_back_chars() not use memcpy? Philipp