RSC/MP 7.2 Programming Manual

API Function Descriptions
HP NonStop Remote Server Call (RSC/MP) Programming Manual522360-004
10-32
RscSwapLong [RSCSL]
RscSwapLong [RSCSL]
The RscSwapLong function exchanges the positions of bytes in a long integer. Use this
function on workstations that are little-endian to convert to/from big-endian host values.
If the workstation operating system is big-endian, this function does not modify the long
integer.
For multithreaded operating systems, the application can call RscSwapLong or
RscSwapShort at any time; the application does not have to wait for completion of a
previous API call.
lValue
The long value to reverse.
Return Value
The return value is the value of lValue with its bytes reversed if RscSwapLong is called
on a little-endian workstation (for example SCO or Windows).
The return value is lValue if RscSwapLong is called on a big-endian workstation (for
example AIX, HP-UX, or Solaris).
LONG RscSwapLong
(LONG lValue /* in */
);