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

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


.TH scan_0x 3
.SH NAME
scan_0x \- parse an unsigned long integer in hexadecimal ASCII representation
.SH SYNTAX
.B #include <scan.h>

int \fBscan_0x\fP(const char *\fIsrc\fR,unsigned long *\fIdest\fR);
.SH DESCRIPTION
scan_0x parses an unsigned long integer in hexadecimal ASCII
representation from \fIsrc\fR and writes the result into \fIdest\fR. It
returns the number of bytes read from \fIsrc\fR.

scan_0x understands both upper and lower case letters.

scan_0x does not expect or understand a "0x" prefix.
.SH "SEE ALSO"
fmt_0x(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.