FreeCalypso > hg > fc-pcsc-tools
view libutil/nibbles2asc.c @ 202:3f6f50103dd3
fc-simtool: update-rec-prev separate command eliminated,
absorbed into regular update-rec
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sun, 07 Mar 2021 04:06:39 +0000 |
parents | 884b93362449 |
children |
line wrap: on
line source
/* * This module implements a function for turning a nibble array * into printable ASCII. */ #include <sys/types.h> void nibbles_to_ascii(nib, len, out) u_char *nib; unsigned len; char *out; { unsigned n; for (n = 0; n < len; n++) *out++ = encode_hex_digit(*nib++); *out = '\0'; }