Changed formatting for parse_arguments().
This commit is contained in:
parent
4e69cde16d
commit
d7501eb2a9
@ -23,7 +23,8 @@ int main(const int argc, const char * const * const argv) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
int parse_arguments(const int argc, const char *const *const argv, price_t *const price, wattage_t *const wattage, interval_t *const interval) {
|
||||
int parse_arguments(const int argc, const char * const * const argv,
|
||||
price_t * const price, wattage_t * const wattage, interval_t * const interval) {
|
||||
if (argc < 2) return 1;
|
||||
|
||||
for (int i = 1, pos = 0; i < argc; ++i)
|
||||
|
@ -7,7 +7,8 @@ typedef long double price_t;
|
||||
typedef long double wattage_t;
|
||||
typedef unsigned long interval_t;
|
||||
|
||||
int parse_arguments(const int argc, const char *const *const argv, price_t *const price, wattage_t *const wattage, interval_t *const interval);
|
||||
int parse_arguments(const int argc, const char *const *const argv,
|
||||
price_t * const price, wattage_t * const wattage, interval_t * const interval);
|
||||
|
||||
inline interval_t interval_to_seconds(const char * const interval);
|
||||
inline price_t to_wattspersecond(const price_t price);
|
||||
|
Loading…
Reference in New Issue
Block a user