view TOOLS/subfont-c/osd/gen_osd_h.c @ 17794:ea0d4bc79bf1

0x00 and 0xFF should be invalid (libnut does that already and it seems like a good idea to recommand)
author michael
date Fri, 10 Mar 2006 13:50:35 +0000
parents 9a754317898e
children
line wrap: on
line source

#include <stdio.h>

int main()
{
    int c;
    int cnt;
    printf("unsigned char osd_font_pfb[] = {");
    for (cnt = 0;;cnt++) {
	if (cnt % 16 == 0) printf("\n");
	c = getchar();
	if (c < 0) break;
	printf("0x%02x,", c);
    }
    printf("};\n");
}