[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [pbmserv-dev] help with Get/Set Options in game.cpp
On Sun, Aug 25, 2002 at 12:23:23PM -0500, Douglas Zander wrote:
> yes, I was just experimenting with strcpy but I tried this:
>
> char *fencevalue;
> strcpy(fencevalue,GetOption());
> char *gridvalue;
> strcpy(gridvalue,GetOption());
>
> but this won't work either will it? :-)
Nope. you need to copy the data to a space reserved for it. Since
fencevalue doesn't have an assigned pointer yet... it *might*
work... but it's doubtful. I'd imagine it'd die a random death.
> OK, I'll do what you suggested, thanks. Thanks for your help and time.
>
>
> --
> Douglas Zander
>
>
>
>
> To unsubscribe, send a message to esquire@gamerz.net with
> unsubscribe pbmserv-dev@gamerz.net
> as the BODY of the message. The SUBJECT is ignored.
>
--
/ \__ | Richard Rognlie / Sendmail Ninja / Gamerz.NET Lackey
\__/ \ | http://www.gamerz.net/rrognlie/ <rrognlie@gamerz.net>
/ \__/ | No trees were killed in the sending of this message.
\__/ | However, a great many instructions were executed.