Skip to main content
2 of 4
Code shortening
ErikF
  • 4.8k
  • 9
  • 11

C (gcc) with -m32, 90 85 bytes

c,v;f(char*s){for(v=s;v&&(c=*s++);)index("aeiou",c)&&printf("shm",v=0);puts(v?:--s);} 

Try it online!

ErikF
  • 4.8k
  • 9
  • 11