aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-03-29 17:51:42 -0400
committerB. Watson <urchlay@slackware.uk>2026-03-29 17:52:51 -0400
commit4ab26eee1dd329152cd2424b0851f2ce950f96bc (patch)
tree2e65fc8b1fa58beff80c630dd1aa7c8f4353ba22 /src/cmd.c
parent44f7a7087a78a86367096a574245406b5116bf42 (diff)
downloadfujinet-chat-4ab26eee1dd329152cd2424b0851f2ce950f96bc.tar.gz
Rewrite parse_msg(), get rid of strtok(), save 328 bytes!
Diffstat (limited to 'src/cmd.c')
-rw-r--r--src/cmd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/cmd.c b/src/cmd.c
index bdba91e..d208683 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -120,7 +120,7 @@ static void err_no_scr_target(void) {
"part #channel I'm outta here\0"
after nextarg(), arg points to "part\0" only, and ret points
to "#channel I'm outta here\0". */
-static char *nextarg(char *arg) {
+char *nextarg(char *arg) {
/* iterate over the first word */
while(*arg && *arg != ' ')
arg++;