Novell Home

TID101011 (TMEMR001) - memcmp() -- Difference in Modular CLIB

From Developer Community

A bug surfaced in a developer's code base when calling the API memcmp() after moving from monolithic CLIB in LIBUP8.EXE to modular CLIB in LIBUP9.EXE.

The code was testing for a -1 which was always being returned when s1 was less than s2. Now, in modular CLIB an integer less than 0 (not always -1) is being returned, which is the way the documentation reads.

tmemr001.exe

tmemr001.exe18.8 K2005-04-06

--Benjamin Fjeldsted

Novell® Making IT Work As One

© 2010 Novell