- Move source code from `trunk` into program root directory. - Update build files and include paths. - These changes also update the CI build files in `.gitea/workflows/`. - Note: Line endings standardised from `CRLF` > `LF`, so best to view diffs with whitespace changes hidden.
11 lines
189 B
C
11 lines
189 B
C
#include <shell_api.h>
|
|
#include <string.h>
|
|
|
|
void shell_gets(char *str, int n)
|
|
{
|
|
__shell_init();
|
|
*__shell_shm = SHELL_GETS;
|
|
__SHELL_WAIT();
|
|
strncpy(str, __shell_shm+1, n);
|
|
}
|