123456789101112131415161718192021222324252627282930313233343536373839404142 |
- #ifndef CHROUT_SOURCE
- #define CHROUT_SOURCE
- #include <stdio.h>
- #include <ctype.h>
- #include "../tools/memory.h"
- void chrout (void const * memory, size_t extent, char c, char e, FILE * fp)
- {
- byte * offset = (byte *)(memory);
- while (extent--)
- {
- putc (isprint (* offset)? * offset: c, fp);
- offset++;
- }
- if (e)
- {
- putc (e, fp);
- }
- return;
- }
- #endif
|