top | item 39433414

(no title)

marmight | 2 years ago

  > The corrected standard C source code might look like this (still disregarding error handling and short writes):
  >
  >  void
  >  write_string (int fd, const char \*s)
  >  {
  >    write (1, s, strlen (s));
  >  }
And disregarding the passed file descriptor! :)

discuss

order

fweimer|2 years ago

Hah! Thanks, fixed.