Files
bluelib/test/core/streams.c

22 lines
402 B
C
Raw Normal View History

#include <blue/core/bstr.h>
2025-06-27 21:54:10 +01:00
#include <blue/core/stream.h>
#include <stdio.h>
int main(void)
{
b_stream_read_line_s(b_stdin, b_stdout);
b_stream_write_char(b_stdout, '\n');
char s[16];
b_bstr str;
b_bstr_begin(&str, s, sizeof s);
b_stream_read_line_s(b_stdin, (b_stream *)&str);
b_stream_write_char((b_stream *)&str, '\n');
const char *e = b_bstr_end(&str);
fputs(e, stdout);
2025-06-27 21:54:10 +01:00
return 0;
}