Re: Abbrv

From: Torgny Bjers (artovil@arcanerealms.org)
Date: 03/09/02


Bejhan Jetha wrote:
>  >handler.c: In function `isname':
>>handler.c:87: warning: implicit declaration of function `single_isname'
>
>I also noticed this bug. D Tyler Barnes kindly rewrote the code. I'll
>post it here for anyone who wants it:

You've never heard of prototypes?

One good way to be sure that all functions can reach each other in a
file is to prototype them at the top of the file, look at any stock
file, such as db.c, under "local functions".  That's the prototyped
functions.  That way function A can call function B anywhere.  If you
do not prototype your functions then function A cannot call function
B since function B is below it in the code, but function B can call
function A since it is above function B.

You really should pick up a book or read some stuff on the net about
basic C programming.  I know; I never read anything either, except
for a long and tedious document on pointers, since that was the main
thing that really confused me.

Kind regards,
Torgny

--

--
   +---------------------------------------------------------------+
   | FAQ: http://qsilver.queensu.ca/~fletchra/Circle/list-faq.html |
   | Archives: http://post.queensu.ca/listserv/wwwarch/circle.html |
   | Newbie List:  http://groups.yahoo.com/group/circle-newbies/   |
   +---------------------------------------------------------------+



This archive was generated by hypermail 2b30 : 06/25/03 PDT