5 ms·
> The corrected standard C source code might look like this (still disregarding error handling and short writes): > > void > write_string (int fd, const
by marmight 3y 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! :)
- fweimer 3y agoHah! Thanks, fixed.