how to remove trailing \n from string in c code example Example: remove \n from string c strtok(Name, "\n");