From 08bba9cd8f0dfd5269287331b2baae1c388d79dd Mon Sep 17 00:00:00 2001 From: "B. Watson" Date: Mon, 6 Apr 2026 01:36:32 -0400 Subject: Rewrite nextarg() in asm. 6643 bytes free. --- src/cmd.c | 25 ------------------------- 1 file changed, 25 deletions(-) (limited to 'src/cmd.c') 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(); -- cgit v1.2.3