> >whats stristr do?
> Stristr is a case-insensitive strstr.  I added the code to the file
> since it isn't standard.  And you are absolutely correct with what you
> said--the code I submitted using stristr would not work as planned if
> there were two players such as 'Raine' and 'Tamraine'.  What you could
> do, then, is use strstr:

Hmm. I had no idea that even existed! I'll have to use it more often.
Another jewel like strcasecmp! :P


> As for return points:
> This is a general programming technique oriented toward projects that
> many people work on.  The problem with numerous points of exit is
> something like using gotos--the code can be difficult to track,
> especially for other team members in your team trying to read your
> code.  It also is very easy to miss a condition and fail to always
> return a value from a function.  This will prevent that error.

Thats... a good idea. Hmm. I definatly don't work with a team,
*narrows his eyes* Everyones trying to steal my code! No touch!
*spazmasticly turns his head around the room*... anyways :P Thanks for
the pointers, always great ta learn somethin' new.

Davion

Reply via email to