Why is tolower behave different???

Steve V. Hodsdon shodsdon at elrond.CalComp.COM
Sat Jul 21 00:47:53 AEST 1990


I just finished porting a software package that ran on a VAX 11/780
to a Sun SPARCserver. One of the programs would not run. (Could not find
the filename specified.). The program was looking for a certain extension,
but could not find it.

Finally, it dawned on me that the function call tolower was to blame.
On the VAX, the call did nothing if the char was already lowercase, while
the Sun converted it anyway.

I know, I know... RTFM. The FM does say this also.

What a pain in the ...

I wonder what other little gotchas there are...


-- 
Steve Hodsdon                          | Stay sane inside insanity.
shodsdon at elrond.CalComp.COM            | Don't dream it, be it.
{decvax|harvard}!elrond!shodsdon       |
(603) 885-8324                         |



More information about the Comp.lang.c mailing list