Coder's Guild Mailing List

String Functions (ANSI C)

Posted by Bernie Siegrist on 1999-07-11

C newbie question: Assume I have the string
"This%20is%20a%20test%2Dtext%21". What is the easiest way to get the text
back, i.e. a) find a % char, b) read the hex value and c) replace this
expression with the corresponding char? Are there any functions I could
use? Is there a Pascal equivalent to Delete() or do I have to use memmove()?
Thanks in advance!