diff options
| author | B. Watson <urchlay@slackware.uk> | 2026-04-06 01:36:32 -0400 |
|---|---|---|
| committer | B. Watson <urchlay@slackware.uk> | 2026-04-06 01:36:40 -0400 |
| commit | 08bba9cd8f0dfd5269287331b2baae1c388d79dd (patch) | |
| tree | f980b44554286790a35ededbae19f9cb3e925412 /src/cmd.c | |
| parent | 978af5db1f2189793d02d1c5a210e460a94dd345 (diff) | |
| download | fujinet-chat-08bba9cd8f0dfd5269287331b2baae1c388d79dd.tar.gz | |
Rewrite nextarg() in asm. 6643 bytes free.
Diffstat (limited to 'src/cmd.c')
| -rw-r--r-- | src/cmd.c | 25 |
1 files changed, 0 insertions, 25 deletions
@@ -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(); |
