Learn how to work with C strings in C. ... One way to do this would be to search the string for a newline and then replace it with the null terminator. What would ...
www.cprogramming.com