A
download favicon2c.c
Language: C
LOC: 22
Project Info
hping2
Server: SourceForge
Type: cvs
...orge\h\hping2\hping2\s10sh\
   bar.c
   bar.h
   bytesex.h
   common.c
   common.h
   crc.c
   crc.h
   favicon.h
   favicon2c.c
   httpd.c
   httpd.h
   main.c
   Makefile.in
   maketgz.sh
   README.CVS
   s10sh.h
   serial.c
   serial.h
   usb.c
   usb.h

#include <stdio.h>

int main(void)
{
	int c;
	int i = 1;

	printf(
"#ifndef S10SH_FAVICON_H\n"
"#define S10SH_FAVICON_H\n"
"\n"
"static unsigned char favicon[] = {\n"
	);
	while((c = getchar()) != EOF) {
		printf("0x%02X, ", (unsigned char) c);
		if (i && !(i%8))
			printf("\n");
		i++;
	}
	printf(
"};\n\n"
"#endif /* S10SH_FAVICON_H */\n");
	return 0;
}

About Koders | Resources | Downloads | Support | Black Duck | Terms of Service | DMCA | Privacy Policy | Contact Us