FILE_RAISE(3)

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

πŸ’… FILE_RAISE(3) πŸ’…

okay so this one comes from SchilyΒ΄s LIBRARY FUNCTIONS, and it’s giving very specific-control energy. Bestie, we’re talking about file_raise() β€” a tiny function with main character boundaries. ✨


πŸŽ€ NAME πŸŽ€

  • file_raise() β€” controls raising of file_read_err and file_write_err

✨ SYNOPSIS ✨

file_raise(f,flag)
FILE *f;
BOOL flag;

🌸 DESCRIPTION 🌸

file_raise() can be used to control whether the conditions file_read_err and file_write_err are raised when an error occurs during an I/O function (fileread(), filewrite(), etc.) on FILE f. 🫢

Calling file_raise() with the flag TRUE enables raising. Calling it with flag FALSE disables raising. No cap. πŸ’…

If raising is disabled and an error occurs, the function will return an appropriate error code β€” this is equivalent to handling the condition and ignoring it. Lowkey important, fr fr. 🌈

The default is to raise the conditions. So yeah, the raise vibe is on unless you say otherwise. πŸ‘‘


πŸ’€ RETURNS πŸ’€

none β€” that’s it, that’s the whole return. Periodt. 😭


xoxo πŸ’– page by Joerg Schilling, dated 2022/09/09 β€” FILE_RAISE(3), out. πŸ’…πŸŽ€

πŸ“¦ where this page comes from