Sign in or Join FriendFeed
FriendFeed is the easiest way to share online. Learn more »
Chet Nichols III
equivalent of chomp in perl - C - http://www.thescripts.com/forum...
int chomp(char *s) { if(s && *s) { s += strlen(s) - 1; if (*s == '\n') { *s = 0; return 1; } } return 0; } - Chet Nichols III