3 ms·
And all of them are better than total_seconds = hours * atoi(getenv("SECONDS_PER_HOUR")); Because you know, we might want to change that value some day.
by GrinningFool 12y ago
And all of them are better than
total_seconds = hours * atoi(getenv("SECONDS_PER_HOUR"));
Because you know, we might want to change that value some day.
I've got a blog post coming up along these lines in the next few days.
- raverbashing 12y agoYes, please And someone is going to criticize you saying SECONDS_PER_HOUR may be a float, so you should use atof