home *** CD-ROM | disk | FTP | other *** search
/ Shareware Overload / ShartewareOverload.cdr / database / softc101.zip / SOFTC.H < prev    next >
Text File  |  1989-02-14  |  4KB  |  129 lines

  1. /*************************************************
  2.  **                                                                                            **
  3.  **        SoftC.h                                   **
  4.  **                                             **
  5.  **                    SoftC common toolkit header                    **
  6.  **                                                                                            **
  7.  **                    Copyright (C) 1988, 1989 by                 **
  8.  **                                Kim Schumann                                    **
  9.  **                                16820 3rd St NE                                **
  10.  **                                Ham Lake, MN 55304                        **
  11.  **                                (612) 434-6968                                **
  12.  **                                                                                            **
  13.  **                            All rights reserved.                        **
  14.  **                        Proprietary information.                    **
  15.  **        Use requires license from Kim Schumann,        **
  16.  **                    or an authorized distributor.                **
  17.  *************************************************/
  18.  
  19.  
  20.  
  21. /**********
  22.  *
  23.  *    Function Return Codes
  24.  *
  25.  **********/
  26.  
  27.  
  28.  
  29.  
  30. #define SC_NOFIND            4            /* WARNING - could not find key in index file */
  31. #define SC_END                3            /* WARNING - no more keys */
  32. #define SC_EMPTY            2            /* WARNING - file is empty */
  33. #define SC_DELREC            1            /* WARNING - record read is marked deleted */
  34. #define SC_SUCCESS        0            /* successful function return code */
  35. #define SC_WRTFAIL        -1        /* ERROR - file write failure */
  36. #define SC_RDFAIL            -2        /* ERROR - file read failure */
  37. #define SC_MEMERR            -3        /* ERROR - memory allocation error */
  38. #define SC_BADFLD            -4        /* ERROR - bad user specified field description */
  39. #define SC_NODBF            -5        /* ERROR - file not in .DBF format */
  40. #define SC_SKFAIL            -6        /* ERROR - file pointer reposition failed */
  41. #define SC_NOFILE            -7        /* ERROR - file not found */
  42. #define SC_FILBAD            -8        /* ERROR - file corrupted */
  43. #define SC_BADEXPR        -9        /* ERROR - bad user specified key expression */
  44. #define SC_NONDX            -10        /* ERROR - file not in .NDX format */
  45. #define SC_NOHNDL            -11        /* ERROR - no handles available */
  46. #define SC_NOPGS            -12        /* ERROR - no index pages loaded */
  47. #define SC_BADPG            -13        /* ERROR - index page was not loaded */
  48. #define SC_CLOSFAIL        -14        /* ERROR - file close failure */
  49. #define SC_BADCMD            -15        /* ERROR - invalid command */
  50. #define SC_BADHNDL        -16        /* ERROR - invalid handle number */
  51. #define SC_BADFNAME        -17        /* ERROR - invalid filename */
  52. #define SC_BADOFS            -18        /* ERROR - invalid offset */
  53. #define SC_BADCOORDS    -19        /* ERROR - bad window coordinates */
  54. #define SC_WINOVRLAD    -20        /* ERROR - window is overlaid by another */
  55. #define SC_2MANYWINS    -21        /* ERROR - too many open windows */
  56. #define SC_BADDATE        -22        /* ERROR - invalid date */
  57.  
  58.  
  59.  
  60.  
  61.  
  62. /**********
  63.  *
  64.  *    Common SoftC Prototypes
  65.  *
  66.  **********/
  67.  
  68.  
  69.  
  70.  
  71. signed short int scinit( signed char, signed char );
  72. signed short int scterm( void );
  73. signed char *scvers( void );
  74.  
  75.  
  76.  
  77.  
  78. /**********
  79.  *
  80.  *    Clock / Calendar Definitions
  81.  *
  82.  **********/
  83.  
  84.  
  85.  
  86.  
  87. /* sccdxlat */
  88. #define SC_2DBASE 1                    /* convert from "mm/dd/[yy]yy" to "yyyymmdd" */
  89. #define SC_2ASCII    8                    /* convert from "yyyymmdd" to "mm/dd/yy" */
  90. #define SC_2ASCIIL 10                /* convert from "yyyymmdd" to "mm/dd/yyyy" */
  91.  
  92.  
  93.  
  94.  
  95. /**********
  96.  *
  97.  *  Clock / Calendar Prototypes
  98.  *
  99.  **********/
  100.  
  101.  
  102.  
  103.  
  104. signed short int sccday( signed char, signed char * );
  105. signed short int sccddiff( signed char *, signed char *, signed long * );
  106. signed short int sccdn2s( signed int, signed int, signed int, signed char * );
  107. signed short int sccds2n( signed char *, signed int *, signed int *,
  108.         signed int* );
  109. signed char sccdvalid( signed char * );
  110. signed short int sccdxlat( signed char, signed char *, signed char * );
  111. signed char sccleap( signed char * );
  112. signed char sccleapi( signed int );
  113. signed short int sccmonth( signed char, signed char * );
  114.  
  115.  
  116.  
  117.  
  118. /**********
  119.  *
  120.  *    Error Handling Prototypes
  121.  *
  122.  **********/
  123.  
  124.  
  125.  
  126.  
  127. void sceclr( void );
  128. signed char *scemsg( void );
  129.