
Click above to get retro games delivered to your door ever month!
X-Hacker.org- SoftC Database Library v2.1 Guide - usage
[<<Previous Entry] [^^Up^^] [Next Entry>>] [Menu] [About The Guide]
USAGE
int scctsvalid(
char *string,
int format );
PROTOTYPE IN
sc_clock.h
DESCRIPTION
scctsvalid tests the ASCIIZ time string string passed for validity:
string properly formatted (format), valid hours, minutes, and seconds.
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()
{
if (scctsvalid("12:03:59",SC_CSHMS) == SC_SUCCESS)
puts("Good Time.");
else
puts("Bad Time.");
}
.
Online resources provided by: http://www.X-Hacker.org --- NG 2 HTML conversion by Dave Pearson