/* $Id: fmsgdump.c,v 3.6 2020/04/26 21:01:55 rswindell Exp $ */ // vi: tabstop=4 #include "gen_defs.h" #include "fidodefs.h" #include "dirwrap.h" /* _PATH_DEVNULL */ #include #include FILE* nulfp; FILE* bodyfp; FILE* ctrlfp; char* freadstr(FILE* fp, char* str, size_t maxlen) { int ch; size_t len=0; while((ch=fgetc(fp))!=EOF && len