I needed uptime in a particular format (seconds), and threw together few different versions while I was at it.
I put the day/hour/minute/seconds code from ampsig back into uptime.c so now there's a formatted version, too, which outputs "days,hours,minute,seconds" to stdout, saves calculating at the other end.
Welcome to corz.org!
Since switching hosts (I hope you are alright, Ed! Wherever you are …) quite a few things seems to be wonky.
Juggling two energetic boys (of very different ages) on Coronavirus lockdown, I'm unlikely to have them all fixed any time soon. Mail me! to prioritise!