Retro video games delivered to your door every month!
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SoftC Database Library v2.1 Guide - usage http://www.X-Hacker.org [<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   int sccts2i(
           int *hours,
           int *minutes,
           int *seconds,
           char *string,
           int format );

PROTOTYPE IN
   sc_clock.h

DESCRIPTION
   sccts2i converts times from an ASCIIZ string string of style
   format to three integer values hour, minute, and second.
   A partial check is made to verify that string is a valid time string
   before attempting to convert.

   Time string styles:
   SC_CSHMS   hh:mm:ss
   SC_MIL     military (0000-2359)

EXAMPLE
   #include <stdio.h>
   #include <softc.h>
   #include <sc_clock.h>

   void main()
   {
     int h, m, s;

     sccts2i(&h,&m,&s,"12:03:59",SC_CSHMS);
     printf("%d %d %d",h,m,s);
   }

See Also: sccti2s

Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson