FreeCalypso > hg > sms-coding-utils
view libcoding/hexout.c @ 23:e56bb9f09ff1
sms-encode-text: port over -e option from fcup-smsend
author | Mychaela Falconia <falcon@freecalypso.org> |
---|---|
date | Sat, 02 Sep 2023 19:22:05 +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]); }