mirror of
https://github.com/MaJerle/lwshell.git
synced 2025-01-25 13:02:54 +08:00
Update example_minimal.c
This commit is contained in:
parent
ca61b0bebb
commit
42667e13c7
@ -16,7 +16,7 @@ mycmd_fn(int32_t argc, char** argv) {
|
||||
/* Example code */
|
||||
void
|
||||
example_minimal(void) {
|
||||
const char* input_str = "mycmd param1 \"param 2 with space\"";
|
||||
const char* input_str = "mycmd param1 \"param 2 with space\"\r\n";
|
||||
|
||||
/* Init library */
|
||||
lwshell_init();
|
||||
@ -28,4 +28,4 @@ example_minimal(void) {
|
||||
|
||||
/* Now insert input */
|
||||
lwshell_input(input_str, strlen(input_str));
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user