Re: more code

From: Nuku Nuku (
Date: 07/13/96

>    sprintf(buf, "%s                   Info for %s\r\n", buf, GET_NAME(ch));
>    sprinttype(GET_RACE(ch), pc_race_types, buf2); 
>    sprintf(buf, "%sRace: %s", buf, buf2);
>    sprinttype(GET_CLASS(ch), pc_class_types, buf2);
>    sprintf(buf, "%s                 Class: %s\r\n", buf, buf2);
>    sprintf(buf,"--------------------------------------------------\r\n");
>    sprintf(buf, "You are %d years old.", GET_AGE(ch));

This line is totally reassigning buf.  buf hasn't been sent to the 
character yet.  You need to

sprintf(buf, "%sYou are %d years old.", buf, GET_AGE(ch));


From Sat, 13 Jul 96 14:27:37 EDT
X-SystemInfo: MyE-Mail: EMail
X-Message-No: 2372 (database)
From: the count <>
To: circle <>
Subject: alias.c
Date: Sat, 13 Jul 96 14:27:00
Message-ID: <>
X-POP3-Rcpt: lk4150@per
Received: from ( []) by (8.6.12/8.6.12) with ESMTP id TAA25404 for <>; Sat, 13 Jul 1996 19:58:54 +0200
Received: (from majordomo@localhost) by (8.7.5/8.6.12) id UAA14453 for circle-outgoing; Sat, 13 Jul 1996 20:23:24 +0200
Received: from ( []) by (8.7.5/8.6.12) with SMTP id UAA14446 for <>; Sat, 13 Jul 1996 20:23:11 +0200
Received: from by (4.1/SMI-4.1)id AA11952; Sat, 13 Jul 96 14:23:08 EDT
Received: from by (4.1/SMI-4.1)id AA12521; Sat, 13 Jul 96 13:19:54 EDT
Precedence: bulk

taking alias.c off the ftp site, and adding it gives me the error:

gcc -c -g -O -Wall -fno-strict-prototypes  alias.c
In file included from alias.c:20:
sysdep.h:276: conflicting types for `qsort'
previous declaration of `qsort'

which proves to be a fatal error :P

if i comment out the #ifndef qsort() portion of sysdep.h, it compiles
fine, but i shouldn't have to do that.
alias.c does not redefine qsort.
anybody have any ideas?  

This archive was generated by hypermail 2b30 : 12/07/00 PST