Hi,
I have an array "iWord", and i'm trying to build a function that takes the punctuation and spaces out of it and puts it in a new array containing only letters, "iAlphaWord". Here is what I have so far:
I can determine whether it's a letter or not and put that in the corresponding place in the new array, but as you can see, i'm lost on how to get rid of the elements containing spaces/punctuation.Code:*Function to make elements only letters*/ void allAlpha (char sWord[], sAlphaWord[]) { int i, iLength; iLength = strlen(sWord); for (i=0; i < iLength; i++) { if (isalpha(i)) { sAlphaWord[i] = sWord[i] } else { ????? } } return(0) }