print with embeded nulls

This commit is contained in:
2025-06-24 03:57:38 +01:00
parent 908d627962
commit 4f757cd9b8
2 changed files with 4 additions and 2 deletions

View File

@@ -1,6 +1,7 @@
#include "../object.h"
#include <stdint.h>
#include <stdio.h>
#include <stdio.h>
ArgonObject *ARGON_STRING_TYPE = NULL;
ArgonObject *ARGON_STRING_BASE = NULL;
@@ -13,7 +14,8 @@ void init_string_type() {
}
ArgonObject *init_string_object(char*data, size_t length) {
printf("%s\n", data);
fwrite(data, 1, length, stdout);
printf("\n");
ArgonObject * object = init_argon_object();
object->typeObject = ARGON_STRING_TYPE;
object->baseObject = ARGON_STRING_BASE;