Změny

Skočit na navigaci Skočit na vyhledávání

DEC.CPP

Přidány 3 bajty, 20. 12. 2012, 18:29
bez shrnutí editace
/* file dec.cpp
 
by Dustin Caldwell (dustin@gse.utah.edu)
 
*/
 
#include <dos.h>
#include <stdio.h>
#include <stdlib.h>
void helpdoc();
main()
{
FILE *fp;
 
unsigned char ch, c;
if((fp=fopen(_argv[1], "rb"))==NULL) /* open file to read */
{
exit(-1);
}
c=0;
ch=fgetc(fp);
while(!feof(fp)) /* loop for whole file */
{
printf("\n");
}
ch=fgetc(fp);
}
fclose(fp); /* close up */
}
void helpdoc() /* print help message */
{
printf("\n Binary File Decoder\n\n");
 
printf("\n Syntax: dec binary_file_name\n\n");
 
printf("by Dustin Caldwell (dustin@gse.utah.edu)\n\n");
printf("This is a filter program that reads a binary file\n");

Navigační menu