I have this project in which i have to take a unidimensional string and convert it into a bidimensional one. If the number of characters is not multiple of 3 (i.e. rests 1 or 2), i have to copy and add the last character of the last line of the matrix once or twice. This part is also working. The problem is, i'm not being able to add a sequence of commands that translate the matrix line by line based on a chart i already have. Here's what i'm trying to do:

Thanks in advanceCode:switch (resto) { case 0: for(i=0;i<size;i++)//assembles the matrix { aminoacidos[x][y]=nucleotideos[i]; y++; if (y==3) { y=0; x++; } } for(i=0;i<(size/3);i++)//translated matrix { if (strcmp(aminoacidos[i],"ttt")||(strcmp(aminoacidos[i],"ttc"))) { printf("F"); } if ((strcmp(aminoacidos[i],"tta"))||(strcmp(aminoacidos[i],"ttg"))||(strcmp(aminoacidos[i], "ctt"))||(strcmp(aminoacidos[i], "cta"))||(strcmp(aminoacidos[i], "ctc"))||(strcmp(aminoacidos[i], "ctg"))) { printf("L"); } } break;