Logo Search packages:      
Sourcecode: catdoc version File versions  Download package

void do_ppt ( FILE *  input,
char *  filename 
)

Parameters:
input 
filename 

Definition at line 37 of file pptparse.c.

References process_item().

                                        {
      int itemsread=1;
      int rectype;
      long reclen;
      unsigned char recbuf[8];

      while(itemsread) {
            itemsread = catdoc_read(recbuf, 1, 8, input);
/*          fprintf(stderr,"itemsread=%d: ",itemsread); */
/*          for(i=0; i<8; i++) */
/*                fprintf(stderr,"%02x ",recbuf[i]); */
/*          fprintf(stderr,"\n"); */
            
            if (catdoc_eof(input)) {
                  process_item(DOCUMENT_END,0,input);
                  return;
            }
            if(itemsread < 8)
                  break;
            rectype=getshort(recbuf,2);
            reclen=getulong(recbuf,4);
            
            process_item(rectype,reclen,input);
      }
}


Generated by  Doxygen 1.6.0   Back to index