006
18.12.2003, 15:08 Uhr
Checker
|
C++: |
int speichern(char dateiname[], char bootscreenname[])
{ FILE *fp;
fp = fopen("bootscr.txt", "a");
if(fp == NULL) { return (0); } printf("%ld", ftell(fp)); fflush(stdin); getchar();
if(ftell(fp) < 0) fprintf(fp, "\nmulti(0)disk(0)rdisk(0)partition(1)\\WINDOWS=\"Microsoft Windows %s\" /fastdetect/Kernel=%s.exe", bootscreenname, dateiname); else fprintf(fp, "multi(0)disk(0)rdisk(0)partition(1)\\WINDOWS=\"Microsoft Windows %s\" /fastdetect/Kernel=%s.exe", bootscreenname, dateiname);
fclose(fp);
return (1); }
|
|