I've created this program as a part of a project 'Image Enhancer'. This Program can be used to check whether the given file is a valid BMP file or not. Just compile the source code and enter the absolute file path in the prompt. (Ex-c:\test\text.bmp)
//Checking and validation of an BMP ImageFile
#include<>
#include<>
#include<>
#include<>
#include<>
#include<>
#include<>
#define BMPTYPE (((WORD) 'M' << must="="'BM'" ex="c:\tc\text.bmp):" length =" strlen(inname);" i =" 0;">= 'a') && (inname[i] <= 'z')){
inname[i] = toupper(inname[i]);
}
}
//fpath=inname;
FILE *infp;
//strcpy( inname, argv[1]);
infp = fopen( inname, "r");
if( ! infp)
{
printf("\n Unable to open %s for input\n", inname);
printf("Try again..");
getch();
//main();
// exit(1);
}
printf("Verifying file....");
delay(1000);
bmp(infp);
fclose(infp);
printf("\nPress any key to exit\n");
getch();
// exit(0);
}
Subscribe to:
Post Comments (Atom)
Popular Posts
-
Some times when you connect to the webhost via FileZilla you may encounter this error message. "421 Sorry, cleartext sessions are ...
-
HTML Cheat Sheets HTML 5 Visual Cheat Sheet HTML5 Canvas Cheat Sheet HTML Cheat Sheet HTML Elements and Attributes HTML 5 Cheat Sheet HTML C...
-
1. Open the Firefox “config” page: click into the Firefox address location bar, and type about:config , press Enter. 2. Search the line br...
-
Hiren's Boot CD is a boot CD containing various diagnostic programs such as partitioning agents, system performance benchmarks, disk clo...
-
Rohos Logon Key Two-factor authentication solution that converts any USB drive into a security token for your computer and allows to access...
-
Quick SMS v3 - The 3rd and new version of my software is to be released soon.So here is the BETA Release. Its with a whole new experience...
-
If anyone using PostgreSQL may encounter Fatal error: Call to undefined function pg_connect() initially. This is because the PostgreSQL m...
-
This only applies to cars that can be unlocked by remote control. Should you lock your keys in the car and the spare keys are home. If some ...
-
Q: Can I start my own company on oDesk? A: Yes! oDesk allows you to build and manage a team of workers, colleagues and collaborators. Yo...
-
A transaction is a sequential group of database manipulation operations, which is performed as if it were one single work unit. In other...
No comments:
Post a Comment