jornal

Description: Command line diary

Source code repo

jornal is a command line utility that records diary entries. Just type in 'jornal' on the command line and type out your thought.

For an example of an active jornal diary, check out mine. HTML version here.

Features:

News

v1.1.1 2021-03-22

Download

*Of course there's an asterisk here. But to maintain the old functionality, where you could have a nearly indefinite amount of input, I had to make some compromises in the "no malloc()" thing. Specifically, if you use the stdin functionality (calling jornal without any arguments), your input is stored in a statically allocated 1 MiB array. This means that you would have to write the equivlent of about 200 thousand words of ASCII text to get to the point where jornal will have to fall back on using malloc(). I use a similar strategy for handling the other case of using malloc(), the name and path of the .jornal file.

If you're in the habit of writing entire 200k+ word novels into a single line of stdin while using jornal while having a path so long that it breaks most modern systems, then you're still going to be using dynamic memory allocation.

Opening the jornal file probably uses dynamic memory allocation depending on your libc implementation (I know it does for glibc, for example), so it's not totally free. So don't be shocked if you run the thing in valgrind and find that it allocates memory on the heap still.

No actual user-facing usage has changed because of this update. It's simply a robustness/documentation update.

v1.1.0 2020-11-06

Download

v1.0.0 2020-10-12

Download