mirror of
https://github.com/krgamestudios/Toy.git
synced 2026-04-15 23:04:08 +10:00
Fixed a missing string terminator
This commit is contained in:
@@ -9,3 +9,47 @@ print -4.20;
|
|||||||
print "hello world";
|
print "hello world";
|
||||||
print "hello world";
|
print "hello world";
|
||||||
print "hello world";
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
print null;
|
||||||
|
print true;
|
||||||
|
print false;
|
||||||
|
print 42;
|
||||||
|
print 3.14;
|
||||||
|
print -69;
|
||||||
|
print -4.20;
|
||||||
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
print null;
|
||||||
|
print true;
|
||||||
|
print false;
|
||||||
|
print 42;
|
||||||
|
print 3.14;
|
||||||
|
print -69;
|
||||||
|
print -4.20;
|
||||||
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
print null;
|
||||||
|
print true;
|
||||||
|
print false;
|
||||||
|
print 42;
|
||||||
|
print 3.14;
|
||||||
|
print -69;
|
||||||
|
print -4.20;
|
||||||
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
print null;
|
||||||
|
print true;
|
||||||
|
print false;
|
||||||
|
print 42;
|
||||||
|
print 3.14;
|
||||||
|
print -69;
|
||||||
|
print -4.20;
|
||||||
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
print "hello world";
|
||||||
|
|||||||
@@ -55,5 +55,6 @@ Literal _toStringLiteral(char* cstr) {
|
|||||||
char* copyString(char* original, int length) {
|
char* copyString(char* original, int length) {
|
||||||
char* buffer = ALLOCATE(char, length + 1);
|
char* buffer = ALLOCATE(char, length + 1);
|
||||||
strncpy(buffer, original, length);
|
strncpy(buffer, original, length);
|
||||||
|
buffer[length] = '\0';
|
||||||
return buffer;
|
return buffer;
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user