home *** CD-ROM | disk | FTP | other *** search
/ Programmer 7500 / MAX_PROGRAMMERS.iso / INFO / NCSATELN / TEL23SRC.ZIP / INCLUDE / TURBOC.H < prev    next >
Encoding:
C/C++ Source or Header  |  1991-01-27  |  1.9 KB  |  49 lines

  1. /*
  2. *    TURBOC.H
  3. *    Header file for Microsoft specific things which need to be defined
  4. *        when compiling for Turbo C
  5. ****************************************************************************
  6. *                                                                          *
  7. *      NCSA Telnet for the PC                                              *
  8. *      by Tim Krauskopf, VT100 by Gaige Paulsen, Tek by Aaron Contorer     *
  9. *                                                                          *
  10. *      National Center for Supercomputing Applications                     *
  11. *      152 Computing Applications Building                                 *
  12. *      605 E. Springfield Ave.                                             *
  13. *      Champaign, IL  61820                                                *
  14. *                                                                          *
  15. *      This program is in the public domain.                               *
  16. *                                                                          *
  17. ****************************************************************************
  18. *   Revisions:
  19. *    10/20/90     Version 2.3 Andrew Tridgell
  20. */
  21.  
  22. #ifndef TURBOC_H
  23. #define TURBOC_H
  24.  
  25. #define _MAX_PATH      144  /* max. length of full pathname */
  26. #define _MAX_DRIVE   3      /* max. length of drive component */
  27. #define _MAX_DIR       130  /* max. length of path component */
  28. #define _MAX_FNAME   9      /* max. length of file name component */
  29. #define _MAX_EXT     5      /* max. length of extension component */
  30.  
  31. int _dos_setdate(struct dosdate_t *ddate);
  32. int _dos_settime(struct dostime_t *dtime);
  33.  
  34. struct dosdate_t {
  35.     unsigned char day;
  36.     unsigned char month;
  37.     unsigned int year;
  38.     unsigned char dayofweek;
  39. };
  40.  
  41. struct dostime_t {
  42.     unsigned char hour;
  43.     unsigned char minute;
  44.     unsigned char second;
  45.     unsigned char hsecond;
  46. };
  47.  
  48. #endif    /* TURBOC_H */
  49.