I am solving a problem in C where i have to find duplicate words in astring like

```
 char a[]="This is it This";

```

In above string "This" appears two times so I would like to count it as one.

Can anybody suggest how to achieve this?