Mike Looney wrote:
>
> >strcpy(monster.name,"Orc\0");
> <RANT sytle=Off Topic>
> ARAAGGGGH!!!!!!!
>
> Sorry, you pushed a button here.
>
> In every language that I know of that has both the idea of string litterals
> and the function strcpy, a string litteral is null terminated. Adding the
> \0 is over kill and just makes your code hard to read.
> </RANT>
>
I don't trust strcpy. I always hard-terminate my constants. One
experience with a bad compiler and weeks tracking down the bug scarred
me for life.
But, I mean, it's pseudocode after all...
And it's buggy. It should be '>=' armor class, not '>' armor class. I'll
fix it in version 1.1.
_______________________________________________
Ogf-l mailing list
[EMAIL PROTECTED]
http://www.opengamingfoundation.org/mailman/listinfo/ogf-l