aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c10
1 files changed, 10 insertions, 0 deletions
diff --git a/main.c b/main.c
new file mode 100644
index 0000000..1f85fab
--- /dev/null
+++ b/main.c
@@ -0,0 +1,10 @@
+#include <bh/io.h>
+
+int main()
+{
+ bh_io_t *io = bh_file_new("hello.txt");
+ bh_io_open(io, BH_IO_WRITE);
+ bh_io_write(io, "Hello, world!", 13, NULL);
+ bh_io_free(io);
+ return 0;
+} \ No newline at end of file