Cor's Archives..
C Code (uptime for ampsig)..

Blank-Icon
Name
Last modified
Size
Description

ParentIconTitle
c-Icon
4-Jan-14 06:02 AM
918 Bytes
code
exe-Icon
10-Mar-13 05:38 AM
11.09 KB
Windoze executable
c-Icon
4-Jan-14 06:02 AM
1.12 KB
code
exe-Icon
10-Mar-13 05:38 AM
9.98 KB
Windoze executable
nfo-Icon
5-Jan-14 02:19 AM
4.2 KB
plain text info
c-Icon
4-Jan-14 06:02 AM
723 Bytes
code
exe-Icon
10-Mar-13 05:38 AM
9.98 KB
Windoze executable
nfo-Icon
10-Mar-13 05:38 AM
19 Bytes
plain text info
bat-Icon
10-Mar-13 05:38 AM
792 Bytes
DOS batch file
bat-Icon
10-Mar-13 05:38 AM
782 Bytes
DOS batch file

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.

Help Yourself!

;o) Cor

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!