FreeCalypso > hg > sms-coding-utils
view libcoding/hexout.c @ 22:8a2038c6a156
LICENSE: same as FC host tools and FC SIM tools
The present code is mostly pieced together from FC User Phone Tools
(freecalypso-tools/uptools) and fc-sim-tools, hence it makes no rational
sense for it to be subject to any different license terms than those two
major packages - but make it explicit.
| author | Mychaela Falconia <falcon@freecalypso.org> |
|---|---|
| date | Thu, 31 Aug 2023 23:03:38 +0000 |
| parents | 13518c86b73c |
| children |
line wrap: on
line source
/* * The function implemented in this module emits hex bytes to a stdio output. */ #include <sys/types.h> #include <stdio.h> emit_hex_out(buf, buflen, outf) u_char *buf; unsigned buflen; FILE *outf; { unsigned n; for (n = 0; n < buflen; n++) fprintf(outf, "%02X", buf[n]); }
