1
0
mirror of https://gitlab.com/80486DX2-66/gists synced 2024-11-09 21:32:02 +05:30

reverse-ramdisk.c: change comment style and wrap

This commit is contained in:
Intel A80486DX2-66 2024-01-03 22:02:31 +03:00
parent 7ab89ffc53
commit ab8843ee14
Signed by: 80486DX2-66
GPG Key ID: 83631EF27054609B

View File

@ -1,16 +1,18 @@
/*
C programming idea: Handling temporary files like memory allocations (allocating -> creating empty file, using -> locking for R/W, freeing -> deleting).
20% AI, 80% human (the code is tested and reviewed)
Warning: The current result is quick and dirty. Not for educational or
production purposes.
GCC/Clang/TCC: Compile with -DTEST to set macro TEST as defined, with -DDEBUG
to enable debug mode
To-Do: Add thread-safe versions of functions (use postfix `_r`)
*/
* C programming idea: Handling temporary files like memory allocations
* (allocating -> creating empty file, using -> locking for R/W,
* freeing -> deleting).
*
* 20% AI, 80% human (the code is tested and reviewed)
*
* Warning: The current result is quick and dirty. Not for educational or
* production purposes.
*
* GCC/Clang/TCC: Compile with -DTEST to set macro TEST as defined, with
* -DDEBUG to enable debug mode
*
* To-Do: Add thread-safe versions of functions (use postfix `_r`)
*/
#include <errno.h>
#include <inttypes.h>