twn_util.c: add file_read()

This commit is contained in:
veclavtalica
2025-02-20 19:51:52 +03:00
parent e15975bfaa
commit a231d650f2
6 changed files with 39 additions and 64 deletions

View File

@ -42,6 +42,9 @@
#endif /* TWN_NOT_C */
/* read file to null terminated string, it is freed when the frame ends */
TWN_API char const *file_read(char const *file);
/* calculates the overlap of two rectangles */
TWN_API Rect rect_overlap(Rect a, Rect b);
/* returns true if two rectangles are intersecting */