hex2chars.c
changeset 29 7abf6146898e
parent 27 81a574d60c15
child 48 b94d657a9acb
equal deleted inserted replaced
28:54addf5893ef 29:7abf6146898e
    24 const char *characters = "xuzicjklmneopbdaqfrstvgwhy";
    24 const char *characters = "xuzicjklmneopbdaqfrstvgwhy";
    25 
    25 
    26 char *remap_works (char *str, int slen)
    26 char *remap_works (char *str, int slen)
    27 {
    27 {
    28     int i;
    28     int i;
    29 
       
    30     int pos;
    29     int pos;
    31 
    30 
    32     static char *s;
    31     static char *s;
    33 
    32 
    34     if ((s = malloc (slen + 1)) == NULL)
    33     if ((s = malloc (slen + 1)) == NULL)
    53 char *remap_works_not (char *str, int slen)
    52 char *remap_works_not (char *str, int slen)
    54 {
    53 {
    55     int i, j;
    54     int i, j;
    56 
    55 
    57     double value;
    56     double value;
    58 
       
    59     double *table;
    57     double *table;
    60 
    58 
    61     static char *s;
    59     static char *s;
    62 
    60 
    63     int clen = strlen (characters);
    61     int clen = strlen (characters);