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 ...
-
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...
-
1. Stay Organized Just like anything else, it pays to keep yourself organized. Rather than haphazardly dropping in id’s and classes in the o...
-
The letterpress effect is becoming hugely popular in web design, and with a couple of modern browsers now showing support for the text-shado...
-
10. Find a beautiful wallpaper for your desktop resolution with Google images Here’s how you do it: Go to Advanced Image Search Next t...
-
My next project is about converting comics to my native language. Since manual work is a time consuming, we are discussing about automating ...
-
global $COURSE, $USER; $context = get_context_instance(CONTEXT_COURSE,$COURSE->id); if (has_capability('moodle/legacy:student', ...
-
Lost is an American serial drama television series. It follows the lives of plane crash survivors on a mysterious tropical island, after a...
-
Hi Folks, In Wordpress while uploading a file sometime you may encounter an HTTP Error while crunching file. Usually this error can be resol...
-
Providing supplementary information about potentially complex elements of a user interface is a central part of any website designer or d...
No comments:
Post a Comment