\r
/* handle errors */\r
if(!ptr) {\r
- printf("Could not allocate palette.\n");\r
- exit(-1);\r
+ printf("Could not allocate palette.\n");\r
}\r
\r
return ptr;\r
file = fopen(filename, "rb");\r
if(!file) {\r
printf("Could not open palette file: %s\n", filename);\r
- exit(-2);\r
}\r
\r
/* read the file */\r
file = fopen(filename, "wb");\r
if(!file) {\r
printf("Could not open %s for writing\n", filename);\r
- exit(-2);\r
}\r
\r
/* write the data to the file */\r