Segmentation fault when replacing a char in an array

This is a discussion on Segmentation fault when replacing a char in an array within the C Programming forums, part of the General Programming Boards category; This function should replace all instances of a character in a given character array, while returning the amount of characters ...

"...a computer is a stupid machine with the ability to do incredibly smart things, while computer programmers are smart people with the ability to do incredibly stupid things. They are,in short, a perfect match.." Bill Bryson