01.01.2013 Views

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

AT&T UNIX™PC Unix System V Users Manual - tenox

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

SPUTL ( 3X ) SPUTL ( 3X )<br />

NAME<br />

sputl, sgetl - access long numeric data in a machine independent<br />

fashion<br />

SYNOPSIS<br />

sputl ( value, buffer )<br />

long value;<br />

char *buffer;<br />

long sgetl ( buffer )<br />

char *buffer;<br />

DESCRIPTION<br />

Sputl(3X) will take the 4 bytes of the long value and place them in<br />

memory starting at the address pointed to by buffer. The ordering<br />

of the bytes is the same across all machines. Sgetl will retrieve<br />

the 4 bytes in memory starting at the address pointed to by buffer<br />

and return the long value in the byte ordering of the host<br />

machine.<br />

The usage of sputl(3X) and sgetl in combination provides a<br />

machine independent way of storing long numeric data in an ASCII<br />

file. The numeric data stored in the portable archive file format<br />

(see ar(4)) is written and read into/from buffers with sputl(3X)<br />

and sgetl respectively.<br />

A program which uses these functions must be loaded with the<br />

object file access routine library libld.a.<br />

SEE ALSO<br />

ar( 4).<br />

- 1 -

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!