aboutsummaryrefslogtreecommitdiff
path: root/src/cmd.c
diff options
context:
space:
mode:
authorB. Watson <urchlay@slackware.uk>2026-04-06 01:36:32 -0400
committerB. Watson <urchlay@slackware.uk>2026-04-06 01:36:40 -0400
commit08bba9cd8f0dfd5269287331b2baae1c388d79dd (patch)
treef980b44554286790a35ededbae19f9cb3e925412 /src/cmd.c
parent978af5db1f2189793d02d1c5a210e460a94dd345 (diff)
downloadfujinet-chat-08bba9cd8f0dfd5269287331b2baae1c388d79dd.tar.gz
Rewrite nextarg() in asm. 6643 bytes free.
Diffstat (limited to 'src/cmd.c')
-rw-r--r--src/cmd.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/src/cmd.c b/src/cmd.c
index f0a6d8a..8a59512 100644
--- a/src/cmd.c
+++ b/src/cmd.c
@@ -119,31 +119,6 @@ static void err_no_scr_target(void) {
scr_print_current("No channel/nick for screen\n");
}
-/* arg points to something like:
- "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". */
-char *nextarg(char *arg) {
- /* iterate over the first word */
- while(*arg && *arg != ' ')
- arg++;
-
- /* if we found a space, replace it with a null terminator */
- if(*arg)
- *arg++ = 0;
- else
- return 0; /* found no space, there's no next arg! */
-
- /* skip space(s) */
- while(*arg && *arg == ' ')
- arg++;
-
- if(*arg)
- return arg;
-
- return 0;
-}
-
static char have_commas(void) {
if(strchr(arg1, ',')) {
err_marker();