http://www.youtube.com/user/AltComp126/videos
http://www.youtube.com/user/AltComp126/videos
http://www.youtube.com/user/AltComp126/videos
http://www.youtube.com/user/AltComp126/videos
http://youtube.com/subscription_center?add_user=AltComp126
http://youtube.com/subscription_center?add_user=AltComp126
http://youtube.com/subscription_center?add_user=AltComp126
http://youtube.com/subscription_center?add_user=AltComp126
ASCII_TypedStringStruct * OPCODE__Compiler_SimpleTextFile_getTypedString(FILE *srcfilehandle, unsigned long fileOffset)
{
ASCII_TypedStringStruct *toRet;
unsigned long baseStrOffset=0;
unsigned long codeElementType=0;
unsigned long lenstr=0;
unsigned long x=0;
unsigned char*buffer_of_code_text=NULL;
unsigned long buffer_length=0;
//Try to allocate memory for our typed string structure.
//If it fails, just return with a NULL pointer:
///
toRet=malloc(sizeof(ASCII_TypedStringStruct));
if(toRet!=NULL){
memset(toRet,0,sizeof(ASCII_TypedStringStruct));
while(1) //(while_1_0000)
{
if(buffer_of_code_text!=NULL)
free(buffer_of_code_text);
buffer_of_code_text=malloc(512);
if(buffer_of_code_text!=NULL)
{
//Erase any garbage in -|
// |
/// V
memset(buffer_of_code_text,0,512);
//Read buffer:
///
//Get buffer length:
///
if(buffer_length==0)
break; //the outer loop (while_1_0000)
}
}
}return toRet;
}