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

  1. /*    Copyright (c) 1989 Citadel    */
  2. /*       All Rights Reserved        */
  3.  
  4. /* #ident    "dgops.c    1.1 - 89/07/03" */
  5.  
  6. #include <blkio.h>
  7. #include <errno.h>
  8. /* #include <string.h> */
  9. #include "lseq_.h"
  10.  
  11. /*man---------------------------------------------------------------------------
  12. NAME
  13.      ls_dglseq -
  14.  
  15. SYNOPSIS
  16.      #include "lseq_.h"
  17.  
  18. DESCRIPTION
  19.  
  20. SEE ALSO
  21.  
  22. ------------------------------------------------------------------------------*/
  23. void ls_dglseq(lsp)
  24. lseq_t *lsp;
  25. {
  26.     printf("-------------------------\n");
  27.     printf("|lseq structure contents|\n");
  28.     printf("|-----------------------|\n");
  29.     if (!ls_valid(lsp)) {
  30.         printf("|  lsp          = %p.\n", lsp);
  31.     } else {
  32.         printf("|  hdr.flh      = %d.\n", lsp->lshdr.flh);
  33.         printf("|  hdr.recsize  = %d.\n", lsp->lshdr.recsize);
  34.         printf("|  hdr.flags    = 0%o.\n", lsp->lshdr.flags);
  35.         printf("|  hdr.first    = %d.\n", lsp->lshdr.first);
  36.         printf("|  hdr.last     = %d.\n", lsp->lshdr.last);
  37.         printf("|  hdr.reccnt   = %d.\n", lsp->lshdr.reccnt);
  38.         printf("|  bp           = %p.\n", (void *)lsp->bp);
  39.         printf("|  flags        = 0%o.\n", lsp->flags);
  40.         printf("|  clspos       = %d.\n", lsp->clspos);
  41.         printf("|  clsrp        = %p.\n", (void *)lsp->clsrp);
  42.     }
  43.     printf("--------------------------\n");
  44.     return;
  45. }
  46.  
  47. /*man---------------------------------------------------------------------------
  48. NAME
  49.      ls_dgrec -
  50.  
  51. SYNOPSIS
  52.      #include <lseq.h>
  53.  
  54. DESCRIPTION
  55.  
  56. SEE ALSO
  57.  
  58. ------------------------------------------------------------------------------*/
  59. void ls_dgrec(lsp, lsrp)
  60. lseq_t *  lsp;
  61. lsrec_t * lsrp;
  62. {
  63.     int i = 0;
  64.  
  65.     printf("-------------------------\n");
  66.     printf("|lseq record contents   |\n");
  67.     printf("|-----------------------|\n");
  68.     printf("|  lsrp   = %p.\n", (void *)lsrp);
  69.     if (lsrp != NULL) {
  70.         printf("|  next   = %d.\n", lsrp->next);
  71.         printf("|  prev   = %d.\n", lsrp->prev);
  72.         printf("|  recbuf = %p.\n", lsrp->recbuf);
  73.         if (lsrp->recbuf != NULL) {
  74.             printf("%s\n", lsrp->recbuf);
  75.         }
  76.     }
  77.     printf("-------------------------\n");
  78.  
  79.     return;
  80. }
  81.