Hi,
I tryed to store this little function in the snippets db, but the I get an error message saying that this is not possible. What I am doing wrong?
int chomp(char *s)
{
char *p = strchr(s, '\n');
if ( p != NULL ) {
*p = '\0';
return 1;
}
return 0;
}
czerny