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