I'm writing a little procedure that will allow gods to go to a zone by typing gozone . I am checking the argument against all the current areas (A LA Foldarea). if the argument matches an area name i then call do_goto and send the char to the low_vnum of that area. In order to do this though, low_vnum needs to be a string to work with do_goto. At first I thought I'd just do this
do_goto( ch, buf = itoa(argument, buf, 10) ). I received the classic "function undefined error". I thought that was strange since other procedures in build.c use atoi, so i incluede stdlib.h and I'm getting the same error. Maybe I'm missing some cygwin packages, although I'm pretty sure I grabbed them all. I'm sitting at work so I can't try this just yet, I think I'll try this:
sprintf(buf, "%d", tarea->low_vnum);
I'm not too sure on the syntax of the sprintf function, but I don't see why that wouldn't work.
Ok, I'm done thinking out loud.