At 6:31 PM 7/10/96, Eduardo Gutierrez de Oliveira wrote: >On Wed, 10 Jul 1996, Niese-Petersen wrote: > >> >> Here is how I would do it: >> >> ACMD(do_whogroup) { >> extern struct descriptor_data *descriptor_list; >> struct descriptor_data *d; >> struct follow_type *f, *next; > >This seemed nice so I tried it out, and I get two errors with strcpy: > >gcc -c -g -O -Wall -fno-strict-prototypes act.informative.c >act.informative.c: In function `do_whogroup': >act.informative.c:1131: too many arguments to function `strcpy' >act.informative.c:1137: too many arguments to function `strcpy' >*** Error code 1 > >The lines are: > >1131: > strcpy(buf1, "%s is followed by:\n\r", GET_NAME(d->character)); >1137: > strcpy(buf1, "%s%s", GET_NAME(f->follower), (!next ? "\n\r" : ", ")); Change both of these lines to sprintf(buf1, ...); Good luck, Eric Soderquist _________________________________________________ Eric Soderquist Esoderquist@kpbsd.k12.ak.us -or- felz@alaska.net IMP of BlackVortexMUD <-- currently under development _________________________________________________
This archive was generated by hypermail 2b30 : 12/07/00 PST