Can anyone help me write a function that does the following, any ideas...?
1.Its supposed to capitalize every letter at the beginning of a sentence.
2. Insert a space after every punctuation mark except for dashes (-) and single quote (').
3. Capitalize every letter after each of the punctuation marks.
can anyone help, plsss, sugestions ideas...?
My code below, ok ppl im asking you to help, not do everything then!
Code:void makeproper ( char *in) { if ( islower( *in) ){ *in = toupper( *in ); } while ( *in ){ if( ispunct( *in++ ) ){ if( *in != '\'' && *in != '-' ){ /* next must be space */ /**need_space = 1; need_upper = 1;**/ putchar (' '); if ( islower( *in ) ){ *in = toupper( *in );} } else{ /**need_space = 0; need_upper = 1;**/ if ( islower( *in ) ){ *in = toupper( *in ); } } } else if(ispunct( *in++ ) && isspace( *in++ )) { if( *in != '\'' && *in != '-' ){ if ( islower( *in ) ) { *in = toupper( *in ); } } } ++in; }/**end while**/ } /**end of make proper**/