SWAPBYTES USER'S GUIDE - SWAP 2 OR 4 BYTE QUANTITIES - JWB - 1981-OCT-02 Purpose: Swap bytes in 2- or 4-byte words to make foreign binary tapes readable on VAX and vice versa. Usage: CALL SWAP2 (NWORDS,INBUF, OUTBUF) INPUTS: NWORDS - INTEGER*4 - number of 2-byte words to swap INBUF(NWORDS) - INTEGER*2 - origin of input buffer containing words to be swapped OUTPUT: OUTBUF(NWORDS) - INTEGER*2 - origin of output buffer containing result CALL SWAP4 (NLWRDS,INBUF, OUTBUF) INPUTS: NLWRDS - INTEGER*4 - number of 4-byte longwords to swap INBUF(NLWRDS) - INTEGER*4 - origin of input buffer containing longwords to be swapped OUTPUT: OUTBUF(NLWRDS) - INTEGER*4 - origin of output buffer containing result Status: In build:[BLDUTIL.LIB]SWAPBYTES.OBJ .