home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / GLEN / IS.ZIP / IS_SYS.C < prev    next >
C/C++ Source or Header  |  1988-10-26  |  390b  |  22 lines

  1. /*
  2. ** is-sys.c source modules for 'sys' functions of IS
  3. */
  4.  
  5. #include <time.h>
  6. #include <stdio.h>
  7. #include <stdlib.h>
  8. #include <string.h>
  9. #include "is.h"
  10.  
  11. int is_sys(char *fun, char *ret_str)
  12. {
  13.    int ret = OK;
  14.  
  15.    if((strncmp(fun, "sysdate", 7) == 0))
  16.        _strdate(ret_str);
  17.    else if((strncmp(fun, "systime", 7) == 0))
  18.        _strtime(ret_str);
  19.  
  20.    return(ret);
  21. }
  22.