fix
This commit is contained in:
14
app.cpp
14
app.cpp
@@ -1,4 +1,4 @@
|
||||
#include <math.h>
|
||||
#include <stdio.h>
|
||||
#include "core.cpp"
|
||||
|
||||
int main(int argc, char **argv) {
|
||||
@@ -7,9 +7,15 @@ int main(int argc, char **argv) {
|
||||
Arena *arena = arenaAlloc(Megabytes(64));
|
||||
list<string> args = getArgs(arena, argc, argv);
|
||||
|
||||
{
|
||||
log("teststr: %S :teststrend", strlit("teststring hahaha"));
|
||||
};
|
||||
log(strSplit(arena, strlit("-"), strlit("hallo-world")));
|
||||
|
||||
while (true) {
|
||||
size_t arenaPos = arena->head;
|
||||
string line = PushString(arena, 128);
|
||||
fgets(line.str, (int)line.length, stdin);
|
||||
log(strSplit(arena, strlit("-"), line));
|
||||
arenaFreeFrom(arena, arenaPos);
|
||||
}
|
||||
|
||||
return statusCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user