I'm looking for a small piece of code or a function that takes a string as input and removes all characters other than letters and digits from that, and presents the result as output. It's a couple of lines in perl...not sure how to do it in C. If anyone has any ideas let me know. Thanks.