AIRES library reference: crorecfind.


c
c     Routine directly callable from C/C++ (it could be necessary to
c     append an underscore, "_", to its name depending on the C/C++
c     compiler used).
c
c
      function crorecfind(fileid, intype, vrb, infield1, rectype)
c
c     Reading records until getting a specified record type.
c
c     Written by: S. J. Sciutto, La Plata 1997, 1998, 2003, 2010.
c
c
c     Arguments:
c     =========
c
c     fileid.......... (input, integer) Compressed file number. This
c                      parameter identifies the file to be used for
c                      reading, and is set by the file opening
c                      routine.
c     intype.......... (input, integer) Record type to find.
c     vrb............. (input, integer) Verbosity control. If vrb is
c                      zero or negative then no error/informative
c                      messages are printed; error conditions are
c                      communicated to the calling program via the
c                      return code. If vrb is positive error messages
c                      will be printed: vrb = 1 means that messages
c                      will be printed even with successful operations.
c                      vrb = 2,3 means that only error messages will
c                      be printed. vrb > 3 is similar to vrb = 3, but
c                      with the additional action of stopping the
c                      program if a fatal error takes place.
c     infield1........ (output, integer) If intype is zero, this
c                      variable contains the current value of the first
c                      (nonscaled) integer field of the last scanned
c                      record. It is set to zero otherwise.
c     rectype......... (output, integer) Last scanned record type and
c                      return code. 0 means that a default record was
c                      successfully read. i (i > 0) means that an
c                      alternative record of type i was successfully
c                      read. -1 means that an end-of-file condition was
c                      get from the corresponding file.  Any other
c                      value indicates a reading error (rectype equals
c                      the system return code plus 10000).
c
c     Return value: (logical) True if the last record was successfully
c     ============  read. False othwerise (EOF or I/O error).
c
c
c<--->


These pages are maintained by
Sergio J. Sciutto
Back to AIRES library index
Back to AIRES home [HOME]