~ubuntu-branches/ubuntu/trusty/teeworlds/trusty-updates

« back to all changes in this revision

Viewing changes to bam/src/tools/txt2c.c

  • Committer: Bazaar Package Importer
  • Author(s): Jack Coulter
  • Date: 2008-04-13 18:48:12 UTC
  • Revision ID: james.westby@ubuntu.com-20080413184812-efc80waq2er6p1bs
Tags: upstream-0.4.2
ImportĀ upstreamĀ versionĀ 0.4.2

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
#include <stdio.h>
 
2
 
 
3
int main(int argc, char **argv)
 
4
{
 
5
        int c;
 
6
        printf("const char internal_base[] = {");
 
7
        while(1)
 
8
        {
 
9
                c = fgetc(stdin);
 
10
                if(feof(stdin))
 
11
                        break;
 
12
                printf("0x%x, ", c);
 
13
        }
 
14
        printf("0x00};\n");
 
15
        return 0;
 
16
}