Here is another way to do this
Code:
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
main(int argc, char *argv[])
{
char input[] = "abcdefghijklmnopqrstuvwxyz";
char test[] = "aeuio";
char newname[27];
int x,y,v;
int atvowel;
v = 0;
for(x=0;x<sizeof(input);x++){
for(y=0;y<sizeof(test);y++){
if(input[x] == test[y]){
atvowel = 1;
break; //no need to keep checking vowel is found
}
}
newname[v++] = input[x];
if(atvowel == 1 && islower(input[x])){
newname[v++] = '#';
atvowel = 0;
}
}
printf("%s\n",newname);
system("pause");
}