summaryrefslogtreecommitdiffstats
path: root/nserver/src/ncmd.c
Commit message (Collapse)AuthorAgeFilesLines
* nserver: ncmd.h : Add cmd_parts.rsiddharth2020-04-171-0/+53
| | | | | | | * nserver/src/ncmd.c (cmd_parts): New function definition. * nserver/src/ncmd.h (cmd_parts): New function declaration. * nserver/tests/ncmd_tests.c (test_cmd_parts): Test cmd_parts. (all_tests): Add test_cmd_parts
* nserver: ncmd.c: Updat sanitize.rsiddharth2020-04-171-3/+8
| | | | | * nserver/src/ncmd.c (sanitize): Replace the first '\n' with '\0' instead of the last.
* nserve: Add ncmd.hrsiddharth2020-04-171-0/+42
* nserver/src/nserve.c (sanitize, check_cmd): Move functions ... * nserver/src/ncmd.c (sanitize, check_cmd): ... here. * nserver/src/nserve.h (CMD_MIN_SIZE, CMD_MAX_SIZE): Move constants... * nserver/src/ncmd.h (CMD_MIN_SIZE, CMD_MAX_SIZE): ... here. (sanitize, check_cmd): New function declarations.