Extracting a substring after identifying a marker

Hi, I’m really new to C:
just want to be able to read a string from a file, and then search for a particular word, and having found that word, extract the next string that is delimited by spaces

ie:

kjsdiojfir word stringtoextract aohoidhhr

thanks,