delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp/1997/07/09/20:34:25

From: <levity AT minn DOT net>
Newsgroups: comp.os.msdos.djgpp
Subject: Re: General protection fault because of modulus?
Date: 9 Jul 1997 15:00:24 GMT
Organization: None
Lines: 24
Message-ID: <01bc8c78$59020500$3564a8c0@Kelly.ns1.uswest.net>
References: <01bc8c6e$c991d480$3564a8c0 AT Kelly DOT ns1 DOT uswest DOT net>
To: djgpp AT delorie DOT com
DJ-Gateway: from newsgroup comp.os.msdos.djgpp

I was wrong it is the new line character '\n' that is causing the GPF. but
I still can't figure out why.

> 	
> 	for(i = 0; i < 256; i++)
> 	{
> 		if (i % 5 == 0)
> 		{
> 			(void)printf("%ld,%ld,%ld,%ld |\n", pal[0][i], pal[1][i], pal[2][i],
> pal[3][i]);
> 		}
> 		else
> 			(void)printf("%ld,%ld,%ld,%ld |", pal[0][i], pal[1][i], pal[2][i],
> pal[3][i]);	
> 		
> 	}
> 
> 	fclose(fbmp);
> 	return 0;
> }
> 	
> 
> 		
> 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019