updated readme to have some better sample code
This commit is contained in:
1 parent
be343003fc
commit
13e5ecbdbb
6 files changed
+27
-17
No files matched your search
@@ -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);
|
||||
|
||||
|
||||
Reference in new issue
Block a user