summaryrefslogtreecommitdiff
path: root/util.c
Commit message (Collapse)AuthorAge
* Remove the need of '#' for alpha masksLaslo Hunhold2017-04-14
| | | | | | To be honest, it can happen too easily that the user forgets to put the colour in quotation marks, yielding in the rest of the pipeline to be discarded as a comment.
* Use fshut() to properly flush the output streamLaslo Hunhold2017-04-13
| | | | | | | | For small images, it could happen that the output stream would not be flushed before exit(), resulting in a lack of error-reporting on a full device. Using fflush(), a function I first introduced in sbase, we do the flushing before returning manually and report errors if they occurred.
* Rename header-functions and add more util functionsLaslo Hunhold2017-04-12
| | | | | | | | parse_mask() -> parse a mask-color #xxxxxx ereallocarray() estrtonum() These will come in handy in the respective tools.
* Add util.{c|h} to deduplicate codeLaslo Hunhold2017-03-30