Codebase list enumiax / ac3179d0-0475-4d9b-ab28-236d5aea80e4/main charmap.c
ac3179d0-0475-4d9b-ab28-236d5aea80e4/main

Tree @ac3179d0-0475-4d9b-ab28-236d5aea80e4/main (Download .tar.gz)

charmap.c @ac3179d0-0475-4d9b-ab28-236d5aea80e4/mainraw · history · blame

#include <signal.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>

#include "enumiax.h"
#include "charmap.h"


int charmap_c_to_d( char ch ) {
	int d;

	for( d = 0; charmap[d] != '\0'; d++ )
		if( charmap[d] == ch ) break;

	return d;
}