wawrit - Writes to a word addressable file
wawrit2 - Writes to a word addressable file and returns an error code
call wawrit (iun, buf, addr, nwords) (FORTRAN)
c_wawrit(iun, &buf, addr, nwords) (C)
ier=wawrit2 (iun, buf, addr, nwords) (FORTRAN)
ier=c_wawrit2(iun, &buf, addr, nwords) (C)
Writes to file associated to unit iun, nwords words of buffer buf starting at address addr.
wawrit2 and c_wawrit2 return the number of word written if the write is successful, or a negative or null number otherwise.
On byte addressable machines, WA software routines store the information in a "most significant byte first" fashion.
(click here for a FORTRAN example of use and here for a C example of use)
iun
FORTRAN unit number.
buf
Buffer to write to a file.
addr
Starting word address position from which writing occurs.
nwords
Number of words to write.
Mario Lépine - RPN
WA (Word Addressable) file are 1 based, i.e. first address of the file start at word #1.
Warning: Do not mix different I/O access to the same file (ex: writda, wawrit).
Buffering configuration can be controlled via the WA_CONFIG environment variable for performance issue.
( waopen, waclos, waread )