view TOOLS/subfont-c/osd/gen_osd_h.c @ 18928:586777f09b1b

relative-to-absolute path fixes: Do not prepend drive letter to \\ paths. Do not exit after prepending drive letter to first file, process other files as well.
author reimar
date Fri, 07 Jul 2006 11:17:27 +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");
}