NCEPLIBS-bufr 11.7.1
icopysb.f
Go to the documentation of this file.
1C> @file
2C> @brief Copy a BUFR data subset.
3
4C> This function calls BUFRLIB subroutine copysb() and passes
5C> back its return code as the function value.
6C>
7C> @author J. Woollen
8C> @date 1994-01-06
9C>
10C> @param[in] LUNIN -- integer: Fortran logical unit number for
11C> source BUFR file
12C> @param[in] LUNOT -- integer: Fortran logical unit number for
13C> target BUFR file
14C> @returns icopysb -- integer: return code
15C> - 0 = normal return
16C> - -1 = a BUFR data subset could not be
17C> read from the BUFR message in
18C> internal arrays for LUNIN
19C>
20C> @remarks
21C> - The use of this function allows the return code from copysb() to be
22C> used as the target variable within an iterative program loop.
23C>
24C> <b>Program history log:</b>
25C> | Date | Programmer | Comments |
26C> | -----|------------|----------|
27C> | 1994-01-06 | J. Woollen | Original author |
28C> | 2002-05-14 | J. Woollen | Changed from an entry point to increase portability to other platforms |
29C>
30 FUNCTION icopysb(LUNIN,LUNOT)
31
32 CALL copysb(lunin,lunot,iret)
33 icopysb = iret
34 RETURN
35 END
subroutine copysb(LUNIN, LUNOT, IRET)
This subroutine copies a BUFR data subset from one Fortran logical unit to another.
Definition: copysb.f:58
function icopysb(LUNIN, LUNOT)
This function calls BUFRLIB subroutine copysb() and passes back its return code as the function value...
Definition: icopysb.f:31