Plan 9 from Bell Labs’s /usr/web/sources/contrib/anothy/src/lib/djb-ape/byte/uint16_pack.3

Copyright © 2021 Plan 9 Foundation.
Distributed under the MIT License.
Download the Plan 9 distribution.


.TH uint16_pack 3
.SH NAME
uint16_pack \- write an unsigned little-endian 16-bit integer
.SH SYNTAX
.B #include <uint16.h>

uint16 \fIu\fR;

void \fBuint16_pack\fP(char \fIs\fR[2],uint16 \fIu\fR);
.SH DESCRIPTION
uint16 is a 16-bit unsigned integer type, normally either unsigned int
or unsigned long.

uint16_unpack portably reads a uint16 as stored on a little-endian
architecture from \fIs\fR and writes it info \fIr\fR in the native byte order.

.SH "SEE ALSO"
uint16_unpack(3), uint16_pack_big(3)

Bell Labs OSI certified Powered by Plan 9

(Return to Plan 9 Home Page)

Copyright © 2021 Plan 9 Foundation. All Rights Reserved.
Comments to webmaster@9p.io.