~ubuntu-branches/ubuntu/quantal/psicode/quantal

« back to all changes in this revision

Viewing changes to src/lib/libciomr/wreadw.c

  • Committer: Bazaar Package Importer
  • Author(s): Michael Banck
  • Date: 2006-09-10 14:01:33 UTC
  • Revision ID: james.westby@ubuntu.com-20060910140133-ib2j86trekykfsfv
Tags: upstream-3.2.3
ImportĀ upstreamĀ versionĀ 3.2.3

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
/*!
 
2
** \file wreadw.c
 
3
** \ingroup (CIOMR)
 
4
*/
 
5
 
 
6
/* $Log: wreadw.c,v $
 
7
/* Revision 1.3  2002/06/01 18:23:54  sherrill
 
8
/* Upgrade doxygen documentation
 
9
/*
 
10
/* Revision 1.2  2002/04/19 21:48:06  sherrill
 
11
/* Remove some unused functions and do doxygen markup of libciomr.
 
12
/*
 
13
/* Revision 1.1.1.1  2000/02/04 22:53:24  evaleev
 
14
/* Started PSI 3 repository
 
15
/*
 
16
/* Revision 2.5  1999/11/01 20:11:00  evaleev
 
17
/* Added explicit extern declarations of functions within the library.
 
18
/*
 
19
/* Revision 2.4  1997/09/12 13:53:08  crawdad
 
20
/* Changing marco name from ULL to PSI_FPTR.
 
21
/*
 
22
 * Revision 2.3  1997/08/25  21:50:13  crawdad
 
23
 * Making changes for extension of PSI file size limit.
 
24
 *
 
25
 * Revision 2.2  1995/04/01  20:53:11  fermann
 
26
 * changed bytewise file pointers such as first, last and length to long
 
27
 * unsigned ints in order to handle up to 4 gigabyte tmp files (striped into
 
28
 * individual pieces of less than 2 gigabytes).  added functions li2sec and
 
29
 * sec2li for where they are needed.
 
30
 *
 
31
 * Revision 2.1  1991/06/15  18:30:17  seidl
 
32
 * *** empty log message ***
 
33
 * */
 
34
 
 
35
static char *rcsid = "$Id: wreadw.c,v 1.3 2002/06/01 18:23:54 sherrill Exp $";
 
36
 
 
37
#include "iomrparam.h"
 
38
#include "includes.h"
 
39
#include "pointers.h"
 
40
 
 
41
extern void iordr_(int *, char *, PSI_FPTR *, int *);
 
42
 
 
43
 
 
44
/*!
 
45
** wreadw: reads size bytes from tape into buffer starting at fword.
 
46
** nxtwrd is modified to give the new current pointer location after the
 
47
** read operation is completed.
 
48
**
 
49
**   \param tape   = file number
 
50
**   \param buffer = buffer to store read information
 
51
**   \param size   = number of bytes to be read
 
52
**   \param fword  = first byte of buffer to be read
 
53
**   \param nxtwrd = pointer to hold file pointer position after read
 
54
**
 
55
** \ingroup (CIOMR)
 
56
*/  
 
57
void wreadw(int tape, char *buffer, int size, PSI_FPTR fword, PSI_FPTR *nxtwrd)
 
58
   {
 
59
      iordr_(&tape,buffer,&fword,&size);
 
60
      *nxtwrd = fword + size;
 
61
      ptr.wptr[tape] = *nxtwrd;
 
62
   }