Mail Archives: djgpp/1998/01/25/18:45:23
Hi Jamie
Jamie Love wrote:
>
> Not specifically a djgpp question, but it does happen to involve the
> djgpp.env file
>
> So, can anyone tell my why, when I compile and run the binary with the
> following command line:
> (the sprites.set is certainly a real file)
> remdefs sprites.set
> I get the djgpp.env file!!! instead of the correct sprites.set file. BTW I
> run this under dos.
> .
> .
> .
> if((length = fread(data, 1, length, inFile)) != -1)
> {
> printf("Error: unable to read %d bytes from %s", length, argv[1]);
> return 0;
> }
> .
> .
> .
You shoukd probably have this:
if((length = fread(data, 1, length, inFile)) == -1)
Regards
Laurent Turcotte
- Raw text -