Codebase list enumiax / 942fc6ad-981e-4479-a6e6-c23dae781288/main charmap.c
942fc6ad-981e-4479-a6e6-c23dae781288/main

Tree @942fc6ad-981e-4479-a6e6-c23dae781288/main (Download .tar.gz)

charmap.c @942fc6ad-981e-4479-a6e6-c23dae781288/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;
}