Fossil

Diff
Login

Diff

Differences From Artifact [419cff1397]:

To Artifact [216133ae57]:


23
24
25
26
27
28
29
30
31

32
33
34
35
36
37
38
39
40
23
24
25
26
27
28
29


30


31
32
33
34
35
36
37







-
-
+
-
-







** The makefiles use this utility to package various resources (large scripts,
** GIF images, etc) that are separate files in the source code as byte
** arrays in the resulting executable.
*/
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#if defined(__NetBSD__) || defined(__FreeBSD__)
#include <ctype.h> /* isspace() */
#include <ctype.h>
#endif


/*
** Read the entire content of the file named zFilename into memory obtained
** from malloc() and return a pointer to that memory.  Write the size of the
** file into *pnByte.
*/
static unsigned char *read_file(const char *zFilename, int *pnByte){