Quote Originally Posted by yan03
You're so right chemicalNova.
Unfortunately I don't get to choose my assignment.

the function remove_eoln() scans the nul-byte terminated character array, and replaces the first found newline or carriage return caracter with a nul-byte.

I got something but I'm not sure.

That sounds pretty easy to implement:

Code:
for(char* c = search_in; *c != NULL; c++)
{
   // if *c is '\r' or '\n', set *c to NULL and break;
}