home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Frostbyte's 1980s DOS Shareware Collection
/
floppyshareware.zip
/
floppyshareware
/
DOOG
/
CBASE09.ZIP
/
LSEQ.ZIP
/
LSEQ_.H
< prev
next >
Wrap
Text File
|
1989-08-30
|
1KB
|
41 lines
/* Copyright (c) 1989 Citadel */
/* All Rights Reserved */
/* #ident "lseq_.h 1.1 - 89/07/03" */
#ifndef LSEQ_H_ /* prevent multiple includes */
#define LSEQ_H_
#define DEBUG
#include <bool.h>
#include "lseq.h"
int ls_alloc(/* lseq_t *lsp */);
#define ls_blksize(LSP) (offsetof(lsrec_t, recbuf) + (LSP)->lshdr.recsize)
void ls_free(/* lseq_t *lsp */);
bool ls_valid(/* lseq_t *lsp */);
lsrec_t * ls_rcalloc(/* lseq_t *lsp */);
int ls_rccopy(/* lseq_t *lsp, lsrec_t *tlsrp, lsrec_t *slsrp */);
void ls_rcfree(/* lsrec_t *lsrp */);
int ls_rcget(/* lseq_t *lsp, lspos_t lspos, lsrec_t *lsrp */);
void ls_rcinit(/* lseq_t *lsp, lsrec_t *lsrp */);
int ls_rcput(/* lseq_t *lsp, lspos_t lspos, lsrec_t lsrp */);
int ls_rcputf(/* lseq_t *lsp, lspos_t lspos, size_t offset, void *buf, size_f bufsize */);
void ls_dglseq(/* lseq_t *lsp */);
void ls_dgrec(/* lseq_t *lsp, lsrec_t *lsrp */);
/* lseq open types */
#define LS_READ ("r")
#define LS_RDWR ("r+")
#ifdef DEBUG
#define LSEPRINT {fprintf(stderr, "lseq error line %d of %s. errno = %d.\n", __LINE__, __FILE__, errno);}
#else
#define LSEPRINT
#endif
#endif /* #ifndef LSEQ_H_ */