update
This commit is contained in:
19
app.cpp
19
app.cpp
@@ -8,24 +8,7 @@ int main(int argc, char **argv) {
|
||||
Arena *arena = arenaAlloc(Megabytes(64));
|
||||
list<string> args = getArgs(arena, argc, argv);
|
||||
|
||||
log(strSplit(arena, "-"_s, "hallo-world"_s));
|
||||
|
||||
while (true) {
|
||||
string line;
|
||||
list<string> split;
|
||||
|
||||
WithScratch(temp) {
|
||||
line = PushString(temp.arena, 128);
|
||||
fgets(line.str, (int)line.length, stdin);
|
||||
split = strSplit(temp.arena, "-"_s, line);
|
||||
}
|
||||
|
||||
if (line.str[0] == '\n' && line.str[1] == '\0') {
|
||||
break;
|
||||
} else {
|
||||
log(split);
|
||||
}
|
||||
}
|
||||
prinft("%S", strSplit(arena, "-"_s, "hallo-world"_s));
|
||||
|
||||
return statusCode;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user