Tree for my work on http://tools.suckless.org/quark/
Find a file
Laslo Hunhold f4db83f68c Use dprintf() instead of snprintf()+sendbuffer()
The aim was to write quark without any mallocs. This was successful, but
proved to be a bit ugly looking at how we construct data to be sent.
Before this change, we had static buffers in each function that needed
them and filled them up, possibly risking overflow.
After that, we sent them off using our own function sendbuffer(), which
in itself represented a buffering mechanism.
Using dprintf, which is POSIX 2008, we can send things off directly,
with no need for sendbuffer() or buffers for these things.
This way we can factor out sendbuffer(), dropping a few more LOCs.

Thanks Hiltjo for the suggestion!
2017-06-21 07:56:40 +02:00
arg.h Initial commit of quark rewrite 2016-09-02 09:59:02 +02:00
config.def.h Rewrite quark from the ground up again 2017-06-20 21:40:00 +02:00
config.mk Rewrite quark from the ground up again 2017-06-20 21:40:00 +02:00
LICENSE Rewrite quark from the ground up again 2017-06-20 21:40:00 +02:00
Makefile Rewrite quark from the ground up again 2017-06-20 21:40:00 +02:00
quark.1 Initial commit of quark rewrite 2016-09-02 09:59:02 +02:00
quark.c Use dprintf() instead of snprintf()+sendbuffer() 2017-06-21 07:56:40 +02:00