Find a word in a word array
Lakaiz
-
[Dal] Posted messages 6205 Registration date Status Contributeur Last intervention -
[Dal] Posted messages 6205 Registration date Status Contributeur Last intervention -
Hello,
I am currently working on a C program to create an automatic email. I need to create a function that will find a keyword within the body of my email.
The body of my email is an array stored in a structure that I will write to a txt file.
My keyword is also in a txt file.
I think the function can be implemented by searching for spaces in my email body and comparing the characters between those spaces with my keyword to see if it is indeed in the text.
If you have any links or codes that could help me, I'd be grateful.
Thank you,
Configuration: Linux / Firefox 79.0
I am currently working on a C program to create an automatic email. I need to create a function that will find a keyword within the body of my email.
The body of my email is an array stored in a structure that I will write to a txt file.
My keyword is also in a txt file.
I think the function can be implemented by searching for spaces in my email body and comparing the characters between those spaces with my keyword to see if it is indeed in the text.
If you have any links or codes that could help me, I'd be grateful.
Thank you,
Configuration: Linux / Firefox 79.0
So a simple substring search function like is probably not desirable.