⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 tchk.doc

📁 c语言函数库,包括大部分c语言函数的说明和代码,有利于想深入了解c编程的开发人员.
💻 DOC
📖 第 1 页 / 共 4 页
字号:
          typedef struct BootBlock {
                    byte JumpInstr[3];
                    byte OEMinfo[8];
                    struct BIOSParmBlock BPB;
                    unsigned int SectorsPerTrack;
                    unsigned int numberHeads;
                    unsigned int numberHiddenSectors;
               };

          typedef struct BootBlock4 {
                    byte JumpInstr[3];
                    byte OEMinfo[8];
                    struct BIOSParmBlock BPB;
                    unsigned int SectorsPerTrack;
                    unsigned int numberHeads;
                    unsigned long numberHiddenSectors;
                    unsigned long TotalnumberSectors;
                    byte Physicaldrive;
                    byte reserved1[1];
                    byte Signaturebyte;
                    unsigned long VolumeSerialNumber;
                    char VolumeLabel[11];
                    byte reserved2[8];
               };


 Filehk.h
--------

     File types:

          typedef struct filespec {
                    char drive;
                    char path[81];
                    char filename[13];
               };
          typedef struct fnameext {
                    char filename[9];
                    char ext[4];
               };

     File constants:

          #define FNAMESIZE        96
          #define PATHSIZE         100
          #define MAXFNAME         13



    TCHK 2.1                                                   Page 15
 Finance.h
---------

     Finance macros:

          #define SLD(c,s,l)            straight_line_dep(c,s,l)
          #define SYD(c,s,l,p)          sum_year_digits_dep(c,s,l,p)
          #define DDB(c,l,p)            double_decline_bal_dep(c,l,p)
          #define ACC_SLD(c,s,l)        accum_dep(c,s,l,0,1)
          #define ACC_SYD(c,s,l,p)      accum_dep(c,s,l,p,2)
          #define ACC_DDB(c,l,p)        accum_dep(c,0,l,p,3)


 Howard.h
--------

     Boolean constants and macros:

          #define boolean     char
          #define FALSE       0
          #define TRUE        (!FALSE)
          #define EQU(b1,b2)  (((b1)&&(b2)) || ((!b1)&&(!b2)))
          #define NEQ(b1,b2)  (((b1)&&(!b2)) || ((!b1)&&(b2)))
          #define BINV(b1)    (b1 ? FALSE : TRUE)

     Text justification:

          #define NONE        0
          #define LEFT        1
          #define CENTER      2
          #define RIGHT       3

     Turbo C version numbers

          #define _TCmajor    ((__TURBOC__&0xFF00)>>8)
          #define _TCminor    ((__TURBOC__&0x00FF)>>4)

     Other

          #define OFF         0
          #define ON          1


 Ibm.h
-----

     IBM types:

          typedef struct EMSrecord {
                    unsigned int handle;
                    unsigned int totalpages;
                    unsigned int availpages;
                    byte version;
                    byte emserror;
               };

    TCHK 2.1                                                   Page 16

     IBM constants:

          Rom id constants. See ibm.h for more details.
          Machine id constants. See ibm.h for more details.
          Memory strategy constants. See ibm.h for more details.
          Disk id byte constants. See ibm.h for more details.
          EMS constants. See ibm.h for more details.

     IBM macros:

          #define TIMER_TICKS     *((long far *) 0x46Clu)


 Keyboard.h
----------

     Keyboard constants:

          #define SHIFT_STATUS     *((byte far *) 0x417lu)
          #define WAITFORKEY       1

     getget() flags:

          #define UDFIDLE     0x0080
          #define DVFREESLICE 0x0040
          #define JCENTER     0x0030
          #define JLEFT       0x0020
          #define JRIGHT      0x0010
          #define JNONE       0x0000
          #define BELL        0x0008
          #define TRIMLEFT    0x0004
          #define TRIMRIGHT   0x0002
          #define INSERTMODE  0x0001
          #define TRIMALL     TRIMLEFT|TRIMRIGHT
          #define NOFLAGS     0x0000


 Keycode.h
---------

     Keycode constants:

          Key shift status constants. See keycode.h for more details.
          Key code constants. See keycode.h for more details.



    TCHK 2.1                                                   Page 17
 Math.h
------

     Math constants:

          #define SQRT2       1.41421356237309504880
          #define PI          3.141592653589793238462643
          #define E           2.7182818284590452353602874
          #define MAXFLOAT           3.4E+38
          #define MAXDOUBLE          1.7E+308
          #define MAXLONG            2147483647
          #define MAXLONG_UNSIGNED   4294967295


 Menuhk.h
--------

     Menuhk types:

          typedef struct popup_field {
                    char *command;
                    int y;
                    char flag;
                    char key;
                    char offset;
                    int retval;
                    struct popup_header *submenu;
                    struct popup_field *next;
                    struct popup_field *previous;
               };

          typedef struct popup_header {
                    char *videosave;
                    struct text_info inforec;
                    int left, top, right, bottom;
                    int margc;
                    struct popup_field *margv;
                    struct popup_field *current;
                    char *menusave;
                    int colnorm;
                    int colcmdkey;
                    int colhilite;
                    int coldisabled;
                    int coldishilite;
                    unsigned flags;
                    char internal;
               };


    TCHK 2.1                                                   Page 18
          typedef struct litebar_field {
                    char *command;
                    int x, y;
                    char flag;
                    char key;
                    char offset;
                    char *message;
                    int retval;
                    struct litebar_header *submenu;
                    struct litebar_field *next;
                    struct litebar_field *previous;
                    struct litebar_field *left;
                    struct litebar_field *right;
                    struct litebar_field *up;
                    struct litebar_field *down;
               };

          typedef struct litebar_header {
                    char *videosave;
                    struct text_info inforec;
                    int left, top, right, bottom;
                    int margc;
                    struct litebar_field *margv;
                    struct litebar_field *current;
                    int msgx, msgy;
                    char *menusave;
                    struct keylist *quitkey;
                    int colnorm;
                    int colcmdkey;
                    int colhilite;
                    int coldisabled;
                    int coldishilite;
                    int colmessage;
                    unsigned flags;
                    char internal;
               };

          typedef struct keylist {
                    int keyval;
                    struct keylist *next;
               };


    TCHK 2.1                                                   Page 19
     Menu flags:

          #define QUITMENU         0x8000
          #define ESCQUIT          0x4000
          #define FREEMENU         0x2000
          #define HIERARCHIAL      0x0100
          #define UDFIDLE          0x0080
          #define DVFREESLICE      0x0040
          #define CASEINDEP        0x0020
          #define RESTORECURSOR    0x0010
          #define CURSORON         0x0008
          #define ERASEMENU        0x0004
          #define DISABLENOHILITE  0x0002
          #define WRAPAROUND       0x0001

     Internal menu flags:

          #define FIRSTTIME        0x01

     Menu command flags:

          #define ENABLED          0x01
          #define DISABLED         0x02
          #define NOTOPTION        0x04
          #define STATICTEXT       NOTOPTION


 Mousehk.h
---------

     Mousehk constants:

          #define MOUSEINT        0x33

          #define MOUSE_INSTALLED -1
          #define NO_MOUSE        0

          #define TWOBUTTONS      -1
          #define XBUTTONS        0
          #define MSYSMOUSE       3

          #define LEFTBUTTON      0
          #define RIGHTBUTTON     1
          #define MIDDLEBUTTON    2

          #define LBPRESSED       0x01
          #define RBPRESSED       0x02
          #define MBPRESSED       0x04



    TCHK 2.1                                                   Page 20
 Multihk.h
---------

     Multihk types:

          typedef struct DESQmemory {
                    int memavail;
                    int largestblockavail;
                    int totalmem;
               };

     Multihk constants:

          #define DVERROR_BEEP    0x8000
          #define DVERROR_LEFT    0x2000
          #define DVERROR_RIGHT   0x4000
          #define DVERROR_EITHER  0x0000


 Printhk.h
---------

     Printhk constants:

          Print Screen constants. See printhk.h for more details.
          Print.com constants. See printhk.h for more details.
          Print.com error codes. See printhk.h for more details.
          #define PRTSC_STATUS     *((byte far *) 0x500lu)


 Real.h
------

     Real types:

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -