Re: A89: Re: Re: Folder List
[Prev][Next][Index][Thread]
Re: A89: Re: Re: Folder List
> Just a tip for you programmers, so that you don't have to spend as much
time
> on it as I did: Use strncmp for strings with fixed length, such as
> SYM_ENTRY::name. Otherwise, the result will be unpredictable, even if
the
> strings are different. It seems that strcmp should stop after the first
> character that is different, so the rest should be ignored, but for some
> reason that doesn't work.
Probably the problem is in the fact that when the string is exactly 8
chars long, it is not zero-terminated...
Zeljko Juric
Follow-Ups: