Fw: Suggestion for edit

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hi,


I'd like to suggest an edit to the description of `strcmp` in the standard C library man page.
I found this description to be kind of confusing, and think the language could be a bit more
straight forward. 



 At present the description reads as follows:

The strcmp() function compares the two strings s1 and s2.  The locale
       is not taken into account (for a locale-aware comparison, see
       strcoll(3)).  It returns an integer less than, equal to, or greater
       than zero if s1 is found, respectively, to be less than, to match, or
       be greater than s2.

I am suggesting the following edits:

The strcmp() function compares the two strings s1 and s2.  The locale
       is not taken into account (for a locale-aware comparison, see
       strcoll(3)).  It returns an integer, which is 0 if the strings 
       match. Otherwise, a negative integer indicates s1 is less than s2,
       while a positive integer indicates s1 is greater than s2.


Regards
Andrew




[Index of Archives]     [Kernel Documentation]     [Netdev]     [Linux Ethernet Bridging]     [Linux Wireless]     [Kernel Newbies]     [Security]     [Linux for Hams]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux Admin]     [Samba]

  Powered by Linux