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

C (gcc) with -m32, 90 85 83 79 bytes

  • -2 thanks to ceilingcat
  • -4 by removing an unused variable
v;f(char*s){for(v=s;v**s;)index("aeiou",*s++)&&printf("shm",v=0);puts(v?:--s);} 

Try it online!

ErikF
  • 4.8k
  • 9
  • 11