1
I can only compare two strings in full in C, but can I compare only part of a string? I wanted to develop a program that reads excerpts from a complaint and based on these excerpts give a response suggestion. Is it possible to read only excerpts in C? In Java I know it is possible, but I would like to do in C. Thank you.
Compare only one part ? What do you mean ? Know if one string contains another ? I suggest you make your question clearer by adding examples of the results you’d expect to see between some comparisons
– Isac
Come on. Let’s assume that the variable "complaint" receives the text: "I would like to know schedules between Rio de Janeiro x Aparecida". I’d like to do something like that. If in the "complaint" variable contains the string "know times" return to String "To view times sign in to the site..."
– Erick Nascimento