Commit Graph

4 Commits

Author SHA1 Message Date
Daniel Santos b34afcd993 cli.c: usage with argv[0]
Instead of printing a usage message with the "numericx" string as a
program name, uses argv[0], better for debugging log readability.

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-05-13 14:15:08 +01:00
Daniel Santos f5421e7612 replace PROG_NAME with "numericx" literal
* replaced PROG_NAME for string literal "numericx".
 * deleted macro definition of PROG_NAME.

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-19 07:43:14 +00:00
Daniel Santos fcc6c957bf numericx_translate() return true
* numericx_translate() was returning EXIT_SUCCESS in case of success.
   Doohh! Now it is return true, in case of success.

   Ajust doxygen comment accordingly.

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-19 07:35:32 +00:00
Daniel Santos 2bea495fe6 separate into header, implementation and cli
* separate numericx into: numericx.h, numericx.c, cli.c
 * numericx.h is the numericx library header
 * numericx.c is the numericx library implementation
 * cli.c is the numericx command-line program

Signed-off-by: Daniel Santos <dacs.git@brilhante.top>
2022-03-17 19:09:42 +00:00