FILEWRITE(3)

πŸ“¦
version 2022.10.16 Β· 2 versions
, in opensuse-leap 16.0

filewrite(3) πŸ’…

okay bestie, this little icon is from Schily’s LIBRARY FUNCTIONS and it’s literally the β€œput bytes into a file” girlie. ✨

NAME 🌸

filewrite() β€” writes into file. no cap.

SYNOPSIS πŸ¦‹

int filewrite(f,buf,size)
FILE *f;
char *buf;
int size;

DESCRIPTION πŸ’–

filewrite() writes the size bytes starting at buf into the file. The file must be open for writing β€” like, non-negotiable, bestie. πŸ”₯

RETURNS ✨

  • >= 0 β€” the number of bytes written. slay.
  • < 0 β€” error code. 😭

NOTES πŸ’…

  • The process suspends if any of the error conditions are not handled. yes, literally pauses.
  • Writing anywhere in the file is allowed. go off, main character.
  • When writing to "raw" devices the size must be multiples of 512. periodt.

mwah πŸ’‹ β€” Joerg Schilling Β· 2022/09/09 Β· FILEWRITE(3) πŸŽ€

πŸ“¦ where this page comes from