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);
}
Thursday, April 2, 2009
Subscribe to:
Posts (Atom)
Popular Posts
-
Here is the working script for PHP Mailer in GoDaddy Hosting, include("includes/class.phpmailer.php"); date_default_timez...
-
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...
-
Some times when you connect to the webhost via FileZilla you may encounter this error message. "421 Sorry, cleartext sessions are ...
-
The CSS frameworks here offer designers a structure going into their projects, so they aren’t starting entirely from scratch. Some offer lay...
-
Use the below code to create a calendar event in PHP and send it as email to Microsoft Outlook or iPhone Calendar. < ?php /** * @cate...
-
Holograms have long been a staple of science fiction, but in recent years, they’ve become more of a reality than ever before. Thanks to adva...
-
“Harbhajan Baba ki Jai” (Glory to Harbhajan Baba), cry out many voices in unison as tourist buses, packed with both Indian and ...
-
10 A Briefer History of Time Stephen Hawking and Leonard Mlodinow Stephen Hawking is one of the world’s most famous physicis...
-
One of the most amazing things about artificial intelligence is its ability to learn and improve through experience. This is especially true...
-
GitHub Link: https://github.com/aravindnc/A-to-Z-List-of-Useful-Node.js-Modules Use Ctrl + F or command + F to search for a module. ...