Kevin,

I'm a little new to C and sorry to say I don't really understand what this has to do with newline chars. I think this is what you meant for me to go back and look at. Would it be easier to just go back and make two language files for my program? Also, I don't know how to make DOS read my accented characters as I intended. Thank you for your help and patience.

Call the function with:
fgets(line,MAX_LN_LEN,afflst);
mychomp(line);

void mychomp(char * s)
{
 int k = strlen(s);
 if (k > 0) *(s+k-1) = '\0';
 if ((k > 1) && (*(s+k-2) == '\r')) *(s+k-2) = '\0';
}

-Luke

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to