public wiki contents of
git clone git://
Log | Files | Refs

commit 9a788d5e9f31c541af8d580161f3033c6b4d41c1
parent b234e805d75c0245f2bcaf1b19e0a2ecf1904190
Author: Hiltjo Posthuma <>
Date:   Sat, 13 Jan 2024 12:36:08 +0100

Revert "rocks: add blog-gen"

This reverts commit b234e805d75c0245f2bcaf1b19e0a2ecf1904190.

Remove from rocks for now.
Reason: code quality (at the moment).

Some feedback:

* Make sure to fclose() file descriptors/streams in main.c tag().
* Check for errors, for example when fopen() fails and write a clear error
  message to the user (using perror() or strerror(errno) or whatever).
  * Check for NULL pointers: to fix: strchr(text,'\n')[0] = '\0'; \
  * Change this for opendir() too.
  * Check for path truncations (snprintf()).
  * Separate checking file stream for errors or EOF  (ferror()) and feof()).
* Do not allocate everything on the stack (stack space is not infinite).
* In main() do not return -1 but return a code between 0 and 255.
* Use PATH_MAX (not 16384) or query filesystem limits.

With best intentions,

Diffstat: | 1-
1 file changed, 0 insertions(+), 1 deletion(-)

diff --git a/ b/ @@ -233,7 +233,6 @@ This covers most console-based programs and programs from * [md4c]( - markdown to html converter. Fast, [CommonMark]( compliant, offers extensions which can be switched on/off via cli args. -* [blog-gen]( - output HTML logs from a directory, supports tagging ### Utilities / miscellaneous