home *** CD-ROM | disk | FTP | other *** search
/ Frostbyte's 1980s DOS Shareware Collection / floppyshareware.zip / floppyshareware / DOOG / CBASE09.ZIP / LSEQ.ZIP / LSPUTR.C < prev    next >
Text File  |  1989-08-30  |  1KB  |  46 lines

  1. /*    Copyright (c) 1989 Citadel    */
  2. /*       All Rights Reserved        */
  3.  
  4. /* #ident    "lsputr.c    1.1 - 89/07/03" */
  5.  
  6. #include "lseq_.h"
  7.  
  8. /*man---------------------------------------------------------------------------
  9. NAME
  10.      lsputr - put current lseq record
  11.  
  12. SYNOPSIS
  13.      #include <lseq.h>
  14.  
  15.      int lsputr(lsp, buf)
  16.      lseq_t *lsp;
  17.      void *buf;
  18.  
  19. DESCRIPTION
  20.      The lsputr function writes the record pointed to by buf into the
  21.      current record in lseq lsp.  buf must point to a storage area at
  22.      least as large as the record size for lsp.
  23.  
  24.      lsputr will fail if one or more of the following is true:
  25.  
  26.      [EINVAL]       lsp is not a valid lseq pointer.
  27.      [EINVAL]       buf is the NULL pointer.
  28.      [LSELOCK]      lsp is not write locked.
  29.      [LSENOPEN]     lsp is not open.
  30.      [LSENREC]      The cursor is null.
  31.  
  32. SEE ALSO
  33.      lscursor, lsgetr, lsputrf.
  34.  
  35. DIAGNOSTICS
  36.      Upon successful completion, a value of 0 is returned.  Otherwise, a
  37.      value of -1 is returned, and errno set to indicate the error.
  38.  
  39. ------------------------------------------------------------------------------*/
  40. int lsputr(lsp, buf)
  41. lseq_t * lsp;
  42. void *   buf;
  43. {
  44.     return lsputrf(lsp, (size_t)0, buf, lsp->lshdr.recsize);
  45. }
  46.