File: uint16_unpack.3

package info (click to toggle)
libowfat 0.34-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 5,288 kB
  • sloc: ansic: 20,181; makefile: 16
file content (18 lines) | stat: -rw-r--r-- 523 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
.TH uint16_unpack 3
.SH NAME
uint16_unpack \- read an unsigned little-endian 16-bit integer
.SH SYNTAX
.B #include <libowfat/uint16.h>

uint16 \fIu\fR;

void \fBuint16_unpack\fP(const 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 into \fIu\fR in the native byte order.

.SH "SEE ALSO"
uint16_pack(3), uint16_unpack_big(3)