Why not just increment and decrement seconds and then convert the result
++seconds;
....
sprintf(buffer, "%02d:%02d", seconds/60, seconds%60);
Why not just increment and decrement seconds and then convert the result
++seconds;
....
sprintf(buffer, "%02d:%02d", seconds/60, seconds%60);