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
-
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. ...
-
My next project is about converting comics to my native language. Since manual work is a time consuming, we are discussing about automating ...
-
To fix 404 page errors while using wp_paginate() in wordpress. while going to sample-page/page/2 will leads to 404 as the 'page' wil...
-
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...
-
The CSS frameworks here offer designers a structure going into their projects, so they aren’t starting entirely from scratch. Some offer lay...
-
Follow the below steps to create bootable Windows 7/Vista USB drive using which you can install Windows 7/Vista easily. 1. Plug-in your U...
-
Lots of times when you're developing a site, you'll want to have a snippet of text in one place. PHP doesn't really have a goo...
-
Depending on your location on the Earth's surface, a spacecraft's position in orbit and the time of day, you may be abl...
-
Step 1 Download below JS file and replace your print.button.js with below it, https://github.com/aravindnc/Buttons/blob/repeating-print-...
-
When sending emails to lists, it is important that you use what is called "Blind Carbon Copying (BCC)." Instead of using the box i...