fx.collections: update stringstream usage
This commit is contained in:
@@ -11,7 +11,7 @@ int main(int argc, const char **argv)
|
|||||||
fx_stream_read_all_bytes_s(fx_stdin, dest_stream, buf, &nr_read);
|
fx_stream_read_all_bytes_s(fx_stdin, dest_stream, buf, &nr_read);
|
||||||
|
|
||||||
printf("done. read %zu bytes total.\n", nr_read);
|
printf("done. read %zu bytes total.\n", nr_read);
|
||||||
printf("%s\n", fx_stringstream_ptr(dest_stream));
|
printf("%s\n", fx_stringstream_get_cstr(dest_stream));
|
||||||
|
|
||||||
fx_stringstream_unref(dest_stream);
|
fx_stringstream_unref(dest_stream);
|
||||||
fx_stream_buffer_unref(buf);
|
fx_stream_buffer_unref(buf);
|
||||||
|
|||||||
Reference in New Issue
Block a user