[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
   signed int sccts2i(
           signed int *hours,
           signed int *minutes,
           signed int *seconds,
           signed char *string,
           signed 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()
   {
     signed int h, m, s;

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

See Also: sccti2s
This page created by ng2html v1.05, the Norton guide to HTML conversion utility. Written by Dave Pearson