Confused/incorrect comments in pthread_equal()

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Confused/incorrect comments in pthread_equal()

Mark Pizzolato - pthreads - win32
The comments at the beginning of pthread_equal say:
      * DOCPUBLIC
      *      This function returns nonzero if t1 and t2 are equal, else
      *      returns nonzero
Reasonable readers would be confused by the claim that both returns are
nonzero.
It probably should say:
      * DOCPUBLIC
      *      This function returns nonzero if t1 and t2 are equal, else
      *      returns zero