mii_emu/libmish/tests/mish_cmd_test.c
Michel Pollet f7a56ebc01 Initial Commit
Cleaned up for release at last!

Signed-off-by: Michel Pollet <buserror@gmail.com>
2023-10-25 08:50:14 +01:00

21 lines
372 B
C

/*
* mish_cmd_test.c
*
* Copyright (C) 2020 Michel Pollet <buserror@gmail.com>
*
* SPDX-License-Identifier: Apache-2.0
*/
#include "mish_cmd.c"
int main()
{
int argc;
char ** argv = mish_argv_make(
"command with some \" quoted\\\"words \" should work\n", &argc);
for (int i = 0; i < argc; i++)
printf("%2d: '%s'\n", i, argv[i]);
mish_argv_free(argv);
}