This repository has been archived on 2026-04-17. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
bhlib/main.c
Mikhail Romanko c89cf8f316 Change code and naming style, fix several bugs, removed math types.
After a while I felt that putting underscores between words was not the
best solution, so I changed the underscores to capital letters.

Fixed consistency bug between POSIX/Win32 platform in BH_FileOpen.

Removed definitions for math types (vector, matrix, etc.) due to
potential aliasing issues.
2025-02-02 21:13:34 +03:00

11 lines
188 B
C

#include <bh/io.h>
int main()
{
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;
}