home *** CD-ROM | disk | FTP | other *** search
- /*
- * EXAMP16.C
- *
- * The Greenleaf Comm Library
- *
- * Copyright (C) 1989 Greenleaf Software Inc. All Rights Reserved.
- *
- * This example program demonstrates the use of the asitime() function.
- *
- */
- #include <stdio.h>
- #include <stdlib.h>
- #include "asiports.h"
- #include "ibmkeys.h"
- #include "gf.h"
-
- void main( void );
-
- void main()
- {
- int last_time;
- int time;
-
- last_time = -1;
- while ( !gfkbhit() ) {
- time = asitime();
- if ( time != last_time )
- printf( "Current seconds count= %d\r", time );
- last_time = time;
- }
- printf( "\n" );
- getkey();
- }