#include "includes.h"Go to the source code of this file.
Functions | |
| void | OpenImageFile (char *filename) |
| void | OpenPpt (void) |
| void | ErrorBanner (void) |
| void | main (int argc, char *argv[]) |
| int | LoadImageFile (U8 *buf, int size) |
Variables | |
| FILE * | stream |
| U32 | imageSize |
| char | srcFileName [256] |
| void ErrorBanner | ( | void | ) |
| int LoadImageFile | ( | U8 * | buf, | |
| int | size | |||
| ) |
| void main | ( | int | argc, | |
| char * | argv[] | |||
| ) |
Definition at line 29 of file main.c.
00030 { 00031 char num=0; 00032 //int i; 00033 00034 OpenLpt(); 00035 F_ShellInit(); 00036 F_WriterInit(); 00037 F_IcspInit(); 00038 00039 while(1){ 00040 if(ShellCtrl.Exit==TRUE) break; 00041 F_ShellSvc(); 00042 F_WriterSvc(); 00043 } 00044 return; 00045 }
| void OpenImageFile | ( | char * | filename | ) |
Definition at line 47 of file main.c.
00048 { 00049 U32 fileEnd,fileStart; 00050 stream = fopen(filename,"rb"); 00051 if(stream==NULL) 00052 { 00053 printf("\nERROR:can't find the file.\n"); 00054 exit(0); 00055 } 00056 00057 fseek(stream,0L,SEEK_END); 00058 fileEnd=ftell(stream); 00059 fseek(stream,0L,SEEK_SET); 00060 fileStart=ftell(stream); 00061 00062 imageSize=fileEnd-fileStart; /*fileend == peof+1 */ 00063 }
| void OpenPpt | ( | void | ) |
| char srcFileName[256] |
1.5.9