/* Part of the TERMINAL MODULE Copyright (C) 2016-2019 by Xose PĂ©rez Copyright (C) 2020 by Maxim Prokhorov */ #pragma once #include #include namespace terminal { namespace parsing { // Generic command line parser // - split each arg from the input line and put them into the argv array // - argc is expected to be equal to the argv struct CommandLine { std::vector argv; size_t argc; }; CommandLine parse_commandline(const char *line); } // namespace parsing } // namespace terminal