updated readme to have some better sample code

This commit is contained in:
farisawan-2000 committed 2021-01-07 14:07:27 -05:00
1 parent be343003fc
commit 13e5ecbdbb
6 files changed
+27 -17

No files matched your search

+5
View File
@@ -88,6 +88,11 @@ void s2d_print(int x, int y, const char *str, uObjMtx *buf) {
s2d_snprint(x, y, str, buf, s2d_strlen(str));
}
void s2d_print_alloc(int x, int y, const char *str) {
uObjMtx *b = alloc(sizeof(uObjMtx) * s2d_strlen(str));
s2d_snprint(x, y, str, b, s2d_strlen(str));
}
void s2d_type_print(int x, int y, const char *str, uObjMtx *buf, int *pos) {
int len = s2d_strlen(str);