corz.org's Archives..
C Code (uptime for ampsig)..

Blank-Icon
Name
Last modified
Size
Description

ParentIconTitle
c-Icon
30-Aug-22 12:42 PM
914 Bytes
code
exe-Icon
10-Mar-13 05:38 AM
11.09 KB
Windoze executable
c-Icon
30-Aug-22 12:42 PM
1.11 KB
code
exe-Icon
10-Mar-13 05:38 AM
9.98 KB
Windoze executable
nfo-Icon
30-Aug-22 12:42 PM
4.2 KB
plain text info
c-Icon
30-Aug-22 12:42 PM
719 Bytes
code
exe-Icon
10-Mar-13 05:38 AM
9.98 KB
Windoze executable
nfo-Icon
30-Aug-22 12:42 PM
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