mirror of
https://github.com/tinygo-org/tinygo.git
synced 2026-08-06 12:03:41 +00:00
Use proper string types with embedded length
This commit is contained in:
+2
-2
@@ -4,8 +4,8 @@
|
||||
#include <stdio.h>
|
||||
#include "runtime.h"
|
||||
|
||||
void __go_printstring(char *str) {
|
||||
write(STDOUT_FILENO, str, strlen(str));
|
||||
void __go_printstring(string_t *str) {
|
||||
write(STDOUT_FILENO, str->buf, str->len);
|
||||
}
|
||||
|
||||
void __go_printspace() {
|
||||
|
||||
Reference in New Issue
Block a user