Is there any sort of function or linux command that would check a string for a certain character? For example:
Would check the buffer 'buf' for "death". Does Smaug or linux have anything like that? If not, how would I got about doing that? Basically, I want to check a pcdata string for if it has the characters name in it.
strchk( buf, "death" );Would check the buffer 'buf' for "death". Does Smaug or linux have anything like that? If not, how would I got about doing that? Basically, I want to check a pcdata string for if it has the characters name in it.