All pastes #259783 Raw Edit

Anonymous

public text v1 · immutable
#259783 ·published 2006-11-27 19:27 UTC
rendered paste body
#include "fatlow.h"


int main(void)
{
	int des=0;

	printf("Its a Fat World!\n");
    des=open("fat16.img", O_RDWR|O_BINARY);

    if(des == 0)
    {
        printf("Cant open\n");
        return ERROR_PROG;
    }


    if( ReadBootSector(des,Fat->bpb) < FUNC_OK )
    {
        printf("error reading");
        return ERROR_PROG;
    }
	return PROG_OK;
}