Click here to Skip to main content
15,896,330 members
Articles / Programming Languages / C

how to remove the duplicate words in C

Rate me:
Please Sign up or sign in to vote.
5.00/5 (1 vote)
3 Nov 2012CPOL 0  
You didn't specify if you need to suppress all duplicate words or just the consecutive duplicate words.Assuming the latter option, you need to split the path to get the words between the slashes. You can do this with strtok, but scanning the string yourself is not much harder: search for a...

Alternatives

Members may post updates or alternatives to this current article in order to show different approaches or add new features.

Please Sign up or sign in to vote.
3 Nov 2012Tarun Batra 1 alternative  
I have a path like this C:\Users\Desktop\new3oct\31oct\Project\Project\\bin\\logsgs"By programming i have to convert it to this,should i use strtok? Not getting the logic,please tell"C:\Users\Desktop\new3oct\31oct\Project\bin\\logsgs"

License

This article, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)


Written By
CEO VISION fOr VISION
Belgium Belgium
I fell into applied algorithmics at the age of 16 or so. This eventually brought me to develop machine vision software as a professional. This is Dreamland for algorithm lovers.

Comments and Discussions