2026-02-03 14:47:25 +00:00
|
|
|
#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');
|
|
|
|
|
|
2026-02-03 14:47:25 +00:00
|
|
|
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;
|
|
|
|
|
}
|