foot/tokenize.h
Daniel Eklöf 42ec264075
tokenize: strdup() each individual argv
Instead of referencing the un-tokenized “raw” command string, strdup()
each argv. This way, the input string can be ‘const’.
2021-06-20 14:19:22 +02:00

5 lines
94 B
C

#pragma once
#include <stdbool.h>
bool tokenize_cmdline(const char *cmdline, char ***argv);