FreeCalypso > hg > sms-coding-utils
view libcoding/hexout.c @ 30:d7571dc2fecc
doc: encoder/generator portion is now just one part
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Thu, 13 Jun 2024 23:16:04 +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]); }