FreeCalypso > hg > sms-coding-utils
view libcoding/hexout.c @ 3:367dce9bf5a7
add top level Makefile
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 05 Aug 2023 02:10:16 +0000 (22 months ago) |
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]); }