print with embeded nulls
This commit is contained in:
@@ -1,2 +1,2 @@
|
|||||||
null
|
null
|
||||||
"hello world"
|
"hello\u0000world"
|
||||||
@@ -1,6 +1,7 @@
|
|||||||
#include "../object.h"
|
#include "../object.h"
|
||||||
#include <stdint.h>
|
#include <stdint.h>
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <stdio.h>
|
||||||
|
|
||||||
ArgonObject *ARGON_STRING_TYPE = NULL;
|
ArgonObject *ARGON_STRING_TYPE = NULL;
|
||||||
ArgonObject *ARGON_STRING_BASE = NULL;
|
ArgonObject *ARGON_STRING_BASE = NULL;
|
||||||
@@ -13,7 +14,8 @@ void init_string_type() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
ArgonObject *init_string_object(char*data, size_t length) {
|
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();
|
ArgonObject * object = init_argon_object();
|
||||||
object->typeObject = ARGON_STRING_TYPE;
|
object->typeObject = ARGON_STRING_TYPE;
|
||||||
object->baseObject = ARGON_STRING_BASE;
|
object->baseObject = ARGON_STRING_BASE;
|
||||||
|
|||||||
Reference in New Issue
Block a user