aboutsummaryrefslogtreecommitdiff
path: root/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'main.c')
-rw-r--r--main.c9
1 files changed, 5 insertions, 4 deletions
diff --git a/main.c b/main.c
index 1f85fab..70d6f86 100644
--- a/main.c
+++ b/main.c
@@ -2,9 +2,10 @@
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);
+ BH_IO *io = BH_FileNew("hello.txt");
+ BH_IOOpen(io, BH_IO_WRITE);
+ BH_IOWrite(io, "Hello, world!", 13, NULL);
+ BH_IOFree(io);
+
return 0;
} \ No newline at end of file