This is the mail archive of the
glibc-bugs@sourceware.org
mailing list for the glibc project.
[Bug libc/17727] New: hexadecimal string conversion functions
- From: "god12 at niksula dot hut.fi" <sourceware-bugzilla at sourceware dot org>
- To: glibc-bugs at sourceware dot org
- Date: Thu, 18 Dec 2014 13:06:19 +0000
- Subject: [Bug libc/17727] New: hexadecimal string conversion functions
- Auto-submitted: auto-generated
https://sourceware.org/bugzilla/show_bug.cgi?id=17727
Bug ID: 17727
Summary: hexadecimal string conversion functions
Product: glibc
Version: unspecified
Status: NEW
Severity: enhancement
Priority: P2
Component: libc
Assignee: unassigned at sourceware dot org
Reporter: god12 at niksula dot hut.fi
CC: drepper.fsp at gmail dot com
To my great surprise I did not found functions to perform much needed
conversions from ascii strings to hex arrays and back. I was unable to find a
feature request as well.
I'm pretty sure that such functions are implemented anyway somewhere inside
binutils - would be nice to get them into glibc. This way authors of open
source software do not have to reinvent wheel over and over again every time
they got to covert user-supplied command-line arguments into binary
representation for some library calls and vice-versa - converting library call
results into string, printable for users.
The possible signatures could look like
int hex_to_ascii(uint8_t * in, char * out);
int ascii_to_hex(char * in, uint8_t * out);
with return value indicating error if any.
--
You are receiving this mail because:
You are on the CC list for the bug.