hwhelper/hwhelper.cpp
void fix(char *s) {
    int i = 0;
    while (s[i] != '\n')
        i++;
    s[i] = '\0';
}
//replace the newline character in a string with a null character
replace the newline character in a string with a null character
replace the newline character in a string with a null character
void fix(char *s) {
    int i = 0;
    while (s[i] != '\n')
        i++;
    s[i] = '\0';
}
void fix ( char * s ) { int i = 0 ; while ( s [ i ] != ' \n ' ) i ++ ; s [ i ] = ' \0 ' ; }
replace the newline character in a string with a null character
replace the newline character in a string with a null character