home *** CD-ROM | disk | FTP | other *** search
/ Power-Programmierung / CD2.mdf / c / library / dos / database / softc210 / headers / fpt.h < prev    next >
Encoding:
C/C++ Source or Header  |  1991-05-21  |  2.1 KB  |  84 lines

  1. /*************************************************
  2.  **                                             **
  3.  **   fpt.h                                         **
  4.  **                                             **
  5.  **                Copyright (C) 1990, 1991 by                  **
  6.  **               SoftC, Ltd.                   **
  7.  **               16820 3rd St NE               **
  8.  **               Ham Lake, MN 55304            **
  9.  **               (612) 434-6968                **
  10.  **                                             **
  11.  **             All rights reserved.            **
  12.  *************************************************/
  13.  
  14.  
  15.  
  16. #ifndef __SOFTC_H__
  17. #include "softc.h"
  18. #endif
  19.  
  20.  
  21.  
  22. /**********
  23.  *
  24.  *  Type Definitions
  25.  *
  26.  **********/
  27.  
  28.  
  29.  
  30.  
  31. typedef struct {  /* FoxPro memo file information packet */
  32.   CHAR fname[80]; /* file name */
  33.   SC_FLAGS flags; /* miscellaneous flags */
  34. } SC_FPTINFO;
  35.  
  36.  
  37.  
  38.  
  39. #ifdef __cplusplus
  40. extern "C" {
  41. #endif
  42.  
  43.  
  44. /**********
  45.  *
  46.  *  FoxPro Memo File Manipulator Prototypes
  47.  *
  48.  **********/
  49.  
  50.  
  51.  
  52.  
  53. INT scdwclose(  INT );            /* file handle */
  54.  
  55. INT scdwcreate( CHAR *,           /* filename */
  56.                 INT );            /* number of bytes per memo block */
  57.  
  58. INT scdwinfo(   INT,              /* file handle */
  59.                 SC_FPTINFO * );   /* file information and status */
  60.  
  61. INT scdwhget(   INT );            /* file handle */
  62.  
  63. INT scdwopenx(  INT *,            /* file handle */
  64.                 CHAR *,           /* filename */
  65.                 INT );            /* open mode & characteristics */
  66.  
  67. INT scdwpack(   INT,              /* data file handle */
  68.                 INT *);           /* memo file handle */
  69.  
  70. INT scdwrget(   INT,              /* file handle */
  71.                 LONG,             /* record number */
  72.                                 CHAR F_PTR * );   /* buffer for record number */
  73.  
  74. INT scdwrput(   INT,              /* file handle */
  75.                 LONG *,           /* record number */
  76.                                 CHAR F_PTR,       /* buffer for record data */
  77.                 INT );            /* add/update switch */
  78.  
  79. #ifdef __cplusplus
  80. }
  81. #endif
  82.  
  83.  
  84.