Page is a not externally linkable
wruppert - 4:08 am on Sep 15, 2007 (gmt 0)
while (*s++) { return dest;
Perl was invented to make this stuff easy. String manipulation in C is a pain. It has been a few years since I wrote any C, so I may have messed up the syntax a bit. I would have done something like this:
char* skip_colons (char* src, char* dest) {
char* s = src;
char* d = dest;
if (*s!= ':') {
*d++ = *s;
}
}
*d = '\0';
}