Syncing up before merging in cpasjuste changes in pxml
[pandora-libraries.git] / lib / pnd_pndfiles.c
1
2 #include <stdio.h> /* for FILE etc */
3 #include <stdlib.h> /* for malloc */
4 #include <string.h> /* for making ftw.h happy */
5
6 #include "pnd_container.h"
7 #include "pnd_pxml.h"
8 #include "pnd_apps.h"
9 #include "pnd_pndfiles.h"
10
11 unsigned char pnd_pnd_seek_pxml ( FILE *f ) {
12   char *b;
13   unsigned int len;
14
15   b = malloc ( PND_PXML_WINDOW_SIZE );
16
17   if ( ! b ) {
18     return ( 0 );
19   }
20
21   memset ( b, '\0', PND_PXML_WINDOW_SIZE );
22
23   // determine length of file
24   fseek ( f, 0, SEEK_END );
25
26   len = ftell ( f );
27
28   fseek ( f, 0, SEEK_SET );
29
30   /* ready to scan through the file, backwards
31    */
32
33   //strcasestr ( b, PXML_TAGHEAD );
34
35
36
37   // exeunt, with alarums
38
39   free ( b );
40
41   return ( 1 );
42 }