Quick C problem
String1: "<user@isp.com>"
want String2: "user@isp.com"
I have completely blanked on string manipulation.. :(
I have this:
strcpy(newStr,strtok(tmpString,"<"));
strcpy(tmpString,newStr);
strncpy(newStr,tmpString,*strchr(tmpString,'>') - 2);
I know its wrong, and I'll get flamed for it.... its the last line that
doesn't work.
Michael Beattie (mike@omnic.dhis.org)
PGP Key available, reply with "pgpkey" as subject.
-----------------------------------------------------------------------------
If it can't be fixed with Vise-Grips & duct tape, it can't be fixed.
-----------------------------------------------------------------------------
Debian GNU/Linux.... Ooohh You are missing out!
Reply to: