substring to string

how to convert a substring to integer in c language
ex:
255 cc + 56895 + liut

Hi. Could you give bit more details about your question as i cannot understand what exactly you want to achieve. It looks like you are looking for some sort of hash function which can map string to a unique integer. Best is to use some inbuilt hashing technique available as map in C++ or dictionary in Python. Designing your own hash function is a cumbersome task but for a crude implementation, you can use the fact that there are 26 characters so you can map a to 1, b to 2 and so on and work with this.