--- a/docs/src/features.md Mon Jan 06 23:29:41 2025 +0100 +++ b/docs/src/features.md Tue Jan 07 00:12:46 2025 +0100 @@ -127,7 +127,7 @@ CxBuffer *content = cxBufferCreate(NULL, 256, pool->allocator, CX_BUFFER_AUTO_EXTEND); // read the file into the buffer and turn it into a string - cx_stream_copy(f, content, (cx_read_func) fread, (cx_write_func) cxBufferWrite); + cx_stream_copy(f, content, (cx_read_func) fread, cxBufferWriteFunc); fclose(f); cxstring contentstr = cx_strn(content->space, content->size); @@ -363,7 +363,7 @@ cxBufferInit(&fbuf, NULL, 4096, NULL, CX_BUFFER_AUTO_EXTEND); cx_stream_copy(inputfile, &fbuf, (cx_read_func) fread, - (cx_write_func) cxBufferWrite); + cxBufferWriteFunc); fclose(inputfile); // ... do something meaningful with the contents ...