> 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)); -Pirahna From goamkows@janeway.geog.scarolina.edu Sat, 13 Jul 96 14:27:37 EDT X-SystemInfo: MyE-Mail: EMail X-Message-No: 2372 (database) From: the count <goamkows@janeway.geog.scarolina.edu> To: circle <circle@pvv.ntnu.no> Subject: alias.c Date: Sat, 13 Jul 96 14:27:00 Message-ID: <CMM.0.90.0.837282457.goamkows@janeway.geog.sc.edu> X-POP3-Rcpt: lk4150@per Return-Path: owner-circle@pvv.ntnu.no Received: from flipper.pvv.ntnu.no (43@flipper.pvv.ntnu.no [129.241.210.200]) by per.cybercity.dk (8.6.12/8.6.12) with ESMTP id TAA25404 for <lk4150@krull.dk>; Sat, 13 Jul 1996 19:58:54 +0200 Received: (from majordomo@localhost) by flipper.pvv.ntnu.no (8.7.5/8.6.12) id UAA14453 for circle-outgoing; Sat, 13 Jul 1996 20:23:24 +0200 Received: from otis.cla.sc.edu (otis.cla.sc.edu [129.252.1.2]) by flipper.pvv.ntnu.no (8.7.5/8.6.12) with SMTP id UAA14446 for <circle@pvv.ntnu.no>; Sat, 13 Jul 1996 20:23:11 +0200 Received: from kirk.geog.sc.edu by otis.cla.sc.edu (4.1/SMI-4.1)id AA11952; Sat, 13 Jul 96 14:23:08 EDT Received: from janeway.geog.sc.edu by kirk.geog.sc.edu (4.1/SMI-4.1)id AA12521; Sat, 13 Jul 96 13:19:54 EDT Sender: owner-circle@pvv.ntnu.no 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' /usr/local/lib/gcc-lib/sparc-sun-sunos4.1.3/2.3.3/include/stdlib.h:31: 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