Changed formatting for parse_arguments().

This commit is contained in:
Alexander Andreev 2022-10-07 03:48:34 +04:00
parent 4e69cde16d
commit d7501eb2a9
Signed by: Arav
GPG Key ID: 0388CC8FAA51063F
2 changed files with 4 additions and 2 deletions

View File

@ -23,7 +23,8 @@ int main(const int argc, const char * const * const argv) {
return 0; 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; if (argc < 2) return 1;
for (int i = 1, pos = 0; i < argc; ++i) for (int i = 1, pos = 0; i < argc; ++i)

View File

@ -7,7 +7,8 @@ typedef long double price_t;
typedef long double wattage_t; typedef long double wattage_t;
typedef unsigned long interval_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 interval_t interval_to_seconds(const char * const interval);
inline price_t to_wattspersecond(const price_t price); inline price_t to_wattspersecond(const price_t price);