Donn is right; both in the Vax and Sun libc routines, the result is 0 if the argument is 0. Unless something is terribly wrong, the documentation is terribly wrong.