File: stripe.c

package info (click to toggle)
tablix2 0.3.5-2
  • links: PTS
  • area: main
  • in suites: jessie, jessie-kfreebsd, squeeze, wheezy
  • size: 9,920 kB
  • ctags: 3,351
  • sloc: ansic: 24,593; xml: 13,161; sh: 10,409; makefile: 852; perl: 564; yacc: 289; sed: 16
file content (38 lines) | stat: -rw-r--r-- 1,641 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/* Automatically generated by bin2c. Do not modify. */
#include <stdio.h>

static size_t stripe_len = 208;
static unsigned char stripe_data[] = {
  0x89, 0x50, 0x4e, 0x47, 0x0d, 0x0a, 0x1a, 0x0a, 0x00, 0x00, 0x00, 0x0d, 0x49,
  0x48, 0x44, 0x52, 0x00, 0x00, 0x00, 0x08, 0x00, 0x00, 0x00, 0x08, 0x08, 0x06,
  0x00, 0x00, 0x00, 0xc4, 0x0f, 0xbe, 0x8b, 0x00, 0x00, 0x00, 0x06, 0x62, 0x4b,
  0x47, 0x44, 0x00, 0x99, 0x00, 0x99, 0x00, 0x99, 0x5e, 0x44, 0x56, 0x81, 0x00,
  0x00, 0x00, 0x09, 0x70, 0x48, 0x59, 0x73, 0x00, 0x00, 0x0b, 0x13, 0x00, 0x00,
  0x0b, 0x13, 0x01, 0x00, 0x9a, 0x9c, 0x18, 0x00, 0x00, 0x00, 0x07, 0x74, 0x49,
  0x4d, 0x45, 0x07, 0xd6, 0x03, 0x18, 0x0c, 0x32, 0x1f, 0xb3, 0xdc, 0xf0, 0xd2,
  0x00, 0x00, 0x00, 0x1d, 0x74, 0x45, 0x58, 0x74, 0x43, 0x6f, 0x6d, 0x6d, 0x65,
  0x6e, 0x74, 0x00, 0x43, 0x72, 0x65, 0x61, 0x74, 0x65, 0x64, 0x20, 0x77, 0x69,
  0x74, 0x68, 0x20, 0x54, 0x68, 0x65, 0x20, 0x47, 0x49, 0x4d, 0x50, 0xef, 0x64,
  0x25, 0x6e, 0x00, 0x00, 0x00, 0x34, 0x49, 0x44, 0x41, 0x54, 0x18, 0xd3, 0x7d,
  0xca, 0xb1, 0x11, 0x80, 0x30, 0x0c, 0x04, 0xc1, 0xa7, 0xff, 0x0a, 0xa4, 0x66,
  0x97, 0x8c, 0x31, 0x60, 0xf9, 0xd2, 0xbd, 0x0b, 0x32, 0xd4, 0xdd, 0x89, 0xa1,
  0xaa, 0x02, 0x39, 0xe1, 0x76, 0x58, 0xf1, 0x37, 0x7c, 0xf1, 0x35, 0xec, 0xf0,
  0x19, 0x26, 0x84, 0x9c, 0x10, 0x6e, 0x8f, 0xdc, 0xdc, 0x8e, 0x4e, 0x53, 0xab,
  0x24, 0x00, 0x00, 0x00, 0x00, 0x49, 0x45, 0x4e, 0x44, 0xae, 0x42, 0x60, 0x82
};

int stripe_save(char *filename) 
{
	FILE *dest;
	size_t n;

	dest=fopen(filename, "w");
	if(dest==NULL) return -1;

	n=fwrite(stripe_data, stripe_len, 1, dest);
	if(n!=1) return -1;

	fclose(dest);

	return 0;
}