大学の課題で、ファイルの16進ダンプを作成しなければならなくなりました。
で、プログラムを作ったのですが、こんなもんで世の中で通用しますか?
/*////////////////////////////////////////////////////////////////////////////*/
/* */
/* 機能:指定されたファイルを16進数でダンプする */
/* 使い方:HEXDMP FILE-NAME */
/* */
/*////////////////////////////////////////////////////////////////////////////*/
/* インクルードファイル定義 */
#include <stdio.h>
#include <fcntl.h>
#include <string.h>
#include <memory.h>
#include <io.h>
#include <conio.h>

/* マクロ定義 */
#define OK 0
#define NG 1
#define HEXLEN 16 /* 出力幅 4の倍数指定 */
#define STRMAX 256

/* プロトタイプ宣言 */
int MemDmp(int, unsigned char *, int);