Im trying to write a function rem_blanks( char * ) that takes in a char pointer,
loops until it finds the first non space/tab char, then have the string pointer be the pointer to non blank char found. Here is my code.
I thought that by incrementing the pointer in the function that it would leave pointer at the condition desired above, ie at the place of the first non-blank char.Code:void rem_blanks( char * string ){ while( *string++ == ' ' || *( string - 1 ) == '\t' ) { } return; }