I recovers all the 50 images and check my program correctness through check50. but it fails last three test can you check my code and tell me where i'm wrong
here's the check50 error
:) recover.c exists
:) recover.c compiles
:( recovers 000.jpg correctly
\ expected an exit code of 0, not output of "memory card does'nt open correctly\nins..."
:( recovers 001.jpg through 048.jpg correctly
\ expected an exit code of 0, not output of "memory card does'nt open correctly\nins..."
:( recovers 049.jpg correctly
\ expected an exit code of 0, not output of "memory card does'nt open correctly\nins..."
and here is my source code ----
/* * * * * * * * * */
// including standard libraries
#include<stdio.h>
#include<stdint.h>
#include<stdlib.h>
typedef uint8_t BYTE ;
// defining jpg section according to FAT system
#define BLOCKSIZE 512
int main ( void )
{
// opens the memory card file or say the forensic image of the card
FILE* cfcard = fopen ( "newcard.raw" , "r" ) ;
// check that the file is open correctly
if ( cfcard == NULL )
{
printf("memory card does'nt open correctly\ninsufficient memory\n");
return 1 ;
}
[snip remainder]