Hi,
I am reading data from a file and building an unique array of string elements. I am novice in C. So need help.
Example : I have the following arrays :
StringOfElements[TOTAL_NO_OF_ELEMENTS][LEN_OF_ELEMENT]
Elements[LEN_OF_ELEMENT]
I am reading data from file and storing it in Elements[]. Now I need scan StringOfElements for any existing element. If it is not present I am going to add it. Can anybody help me either writing the code or a function to resolve this.
Thanks in advance.
I am reading data from a file and building an unique array of string elements. I am novice in C. So need help.
Example : I have the following arrays :
StringOfElements[TOTAL_NO_OF_ELEMENTS][LEN_OF_ELEMENT]
Elements[LEN_OF_ELEMENT]
I am reading data from file and storing it in Elements[]. Now I need scan StringOfElements for any existing element. If it is not present I am going to add it. Can anybody help me either writing the code or a function to resolve this.
Thanks in advance.