jornal
Description: Command line diaryjornal
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:
- Programmed in ANSI C
- Only about 100 significant lines of code
- Extremely simple to use
- Easy to parse file format, both for humans and machines
- Great spelling
News
v1.1.1 2021-03-22
- New man page generated from a plaintext scdoc(1) file for easy reading.
- No more dymanic memory allocation!*
*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
- Entries didn't have the correct time when you manually input stdin. If you took a while to type something out it would use the time from when you called
jornal
instead of when the entry was finished. This has been fixed. - Fixed a bug where the first entry of the file didn't make a date.
v1.0.0 2020-10-12
- Initial release of
jornal
.