Logo Search packages:      
Sourcecode: maradns version File versions

show.charnum.c

/* Public domain by Sam Trenholme 2001 */

#include <stdio.h>

main() {
    FILE *f;
    char c;
    int charnum = 0;
    if((f=fopen("example.uncompressed","rb")) == NULL)
       exit(1);
    while(!feof(f)) {
        c=getc(f);
        printf("%d: %c (%d)\n",charnum++,c,c);
        }
    }

Generated by  Doxygen 1.6.0   Back to index