Commit Graph

15 Commits

Author SHA1 Message Date
ca7859f8f8
puts was replaced by fputs to set stderr output. In version changed years and an e-mail address. 2023-09-17 22:48:18 +04:00
cfa5c344cd
Added year 2022 to copyright.
Changed usage a little.
2022-10-07 03:51:52 +04:00
7eecfbee01
Removed unnecessary (double) casting of interval_to_seconds result to interval_t. 2022-10-07 03:50:57 +04:00
d398de1f8f
to_wattspersecond() changed to price_to_wattspersecond(). 2022-10-07 03:49:56 +04:00
d7501eb2a9
Changed formatting for parse_arguments(). 2022-10-07 03:48:34 +04:00
4e69cde16d
Weird int const chenged to const int in main(). 2022-10-07 03:46:56 +04:00
8556f85781
[main.{c,h}] Let's put some safety into this code! xD 2022-01-06 04:23:20 +04:00
b457c60f75
[main.c] Structure arguments_t removed. Use ptrs to vars instead. parse_arguments now returns status codes instead of printing stuff and closing program.
`to_wattpersecond` is now `to_wattspersecond`.
Fixed typo in usage, capitalised `options` word. Rephrased `print_version` text.
Removed unnecessary check from `interval_to_seconds` (former `to_seconds`) function.
2021-12-25 23:27:53 +04:00
e61890310f
kwh-calc renamed to more suitable name kwh-cost. 2021-12-24 23:54:31 +04:00
5ab493e7cc
Replaced printf in print_version() and print_usage() with puts. 2021-12-24 01:45:13 +04:00
8b301c7038
All this text was replaced by just an info on where to look for a license. 2021-12-24 01:37:34 +04:00
54aa50779f
Fixed KWh to be as it should be -- kWh. Another retarded moment fixed. :) 2021-12-24 01:25:33 +04:00
24d19fa6ee
Added newlines at the end of source files to be compatible with clang. 2021-12-24 01:01:43 +04:00
6d58dc3813
Removed debug printf. 2021-12-24 00:25:51 +04:00
7d03901e24
Source files. 2021-12-23 23:59:00 +04:00