home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Turbo Toolbox
/
Turbo_Toolbox.iso
/
1991
/
06
/
praxis
/
makeobj.c
< prev
next >
Wrap
C/C++ Source or Header
|
1991-03-01
|
6KB
|
136 lines
/* ---------------------------------------------------------
- MAKEOBJ.C -
- Generiert die Icon-Datei DISKFREE.ICO unter -
- Microsoft-C ohne den Einsatz des RSC-Kits -
- (c) 1991 Ulrich Schmitz & toolbox -
----------------------------------------------------------*/
#include<stdio.h>
void main()
{
FILE *datei;
int i=0, pruefsumme=0, daten[] =
{ 0, 0, 1, 0, 1, 0, 32, 32,
16, 0, 0, 0, 0, 0, 232, 2,
0, 0, 22, 0, 0, 0, 40, 0,
0, 0, 32, 0, 0, 0, 64, 0,
0, 0, 1, 0, 4, 0, 0, 0,
0, 0, 128, 2, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 128, 0, 0, 128,
0, 0, 0, 128, 128, 0, 128, 0,
0, 0, 128, 0, 128, 0, 128, 128,
0, 0, 128, 128, 128, 0, 192, 192,
192, 0, 0, 0, 255, 0, 0, 255,
0, 0, 0, 255, 255, 0, 255, 0,
0, 0, 255, 0, 255, 0, 255, 255,
0, 0, 255, 255, 255, 0, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 0, 0, 0, 0, 0,
0, 119, 119, 119, 119, 119, 119, 119,
119, 112, 0, 0, 0, 0, 0, 0,
0, 0, 7, 119, 119, 119, 119, 119,
119, 0, 0, 0, 8, 136, 136, 128,
0, 0, 0, 119, 119, 119, 119, 215,
112, 0, 0, 0, 136, 0, 0, 136,
0, 0, 0, 7, 215, 119, 119, 221,
112, 0, 0, 0, 136, 0, 0, 136,
0, 0, 0, 7, 215, 119, 119, 221,
119, 0, 0, 0, 8, 136, 136, 128,
0, 0, 0, 119, 215, 119, 119, 221,
215, 112, 0, 0, 0, 0, 0, 0,
0, 0, 7, 125, 215, 119, 119, 221,
221, 119, 119, 0, 0, 0, 0, 0,
0, 119, 119, 125, 215, 119, 119, 221,
221, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 221,
221, 221, 215, 221, 119, 221, 125, 221,
215, 221, 221, 125, 215, 119, 119, 221,
221, 221, 215, 221, 125, 215, 125, 215,
119, 221, 119, 125, 215, 119, 119, 221,
221, 119, 119, 221, 125, 215, 125, 221,
215, 221, 221, 125, 215, 119, 119, 221,
221, 119, 119, 221, 125, 221, 125, 221,
215, 221, 221, 125, 215, 119, 119, 221,
221, 221, 215, 221, 119, 221, 125, 215,
119, 221, 119, 125, 215, 119, 119, 221,
221, 221, 215, 221, 221, 221, 125, 221,
215, 221, 221, 125, 215, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 119, 119,
119, 119, 119, 119, 119, 119, 124, 153,
153, 153, 153, 153, 153, 153, 153, 153,
153, 153, 153, 153, 153, 119, 124, 159,
255, 255, 255, 255, 255, 255, 255, 255,
255, 255, 255, 255, 249, 119, 124, 153,
153, 153, 153, 153, 153, 153, 153, 153,
153, 153, 153, 153, 153, 119, 124, 204,
204, 204, 204, 204, 204, 204, 204, 204,
204, 204, 204, 204, 204, 119, 124, 203,
188, 203, 204, 203, 204, 188, 203, 187,
204, 188, 203, 203, 204, 119, 124, 203,
204, 188, 188, 188, 188, 188, 203, 203,
203, 203, 203, 187, 204, 119, 124, 203,
204, 188, 188, 188, 188, 188, 203, 203,
203, 203, 204, 188, 204, 119, 124, 203,
204, 188, 188, 188, 188, 188, 203, 203,
203, 203, 203, 187, 204, 119, 124, 203,
204, 203, 204, 203, 204, 188, 203, 187,
204, 188, 203, 203, 204, 119, 124, 203,
204, 204, 204, 204, 204, 188, 203, 204,
204, 204, 204, 204, 204, 119, 124, 187,
187, 204, 204, 204, 204, 188, 203, 204,
204, 204, 204, 204, 204, 119, 124, 203,
204, 204, 204, 204, 204, 188, 203, 204,
204, 204, 204, 204, 204, 119, 124, 203,
204, 204, 204, 204, 204, 188, 203, 204,
204, 204, 204, 204, 204, 119, 124, 204,
204, 204, 204, 204, 204, 204, 204, 204,
204, 204, 204, 204, 204, 119, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, 0, 0,
0, 0, 0, 0, 0, 0, -1
};
datei = fopen("DISKFREE.ICO", "w");
if (datei != NULL)
{
while(daten[i] != -1)
{
fputc(daten[i++], datei);
pruefsumme += daten[i];
}
if(pruefsumme != 16738){
printf("\nFehlerhafte Prüfsumme!!\n");
printf("Bitte die Datenbereiche überprüfen!\n");
}
else{
printf("\nDie Prüfsumme ist in Ordnung.\n");
printf("Datei DISKFREE.ICO wurde generiert!\n");
}
fclose(datei);
}
else
printf("Das ist bitter, Fehler bei Dateierstellung!!\n");
}
/*----------------------------------------------------------
- Ende von MAKEOBJ.C */