Fwd: getline() manpage typo

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

 



To whom it may concern

Dear Sir or Madam,

I am writing to you because I believe I have found a typo in the
manpage for the getline() function provided by stdio.h.
I am using version 5.12 on Fedora 35 but it is also present in the
current version 5.13.
The typo is  located in the "EXAMPLES" section at the bottom, there
the variable "nread" in line 10 is of type "ssize_t" and I believe it
is supposed to be of type "size_t":

       [...]
       int
       main(int argc, char *argv[])
       {
           FILE *stream;
           char *line = NULL;
           size_t len = 0;
           ssize_t nread; <-- supposed typo here!

       [...]

Thank you for your time.

yours sincerely,

Stefan Rohrbacher



[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