I'm trying to make matches with sscanf() and with jokers as well.
Can somebody help please?
This is the incoming line I want to react on:
\001ACTION slaps <xxxx> with a 2GB log of W2K\001
What I want is, to check if the incoming line is like that AND if yes.. I want the text between the slaps and with in a variable.
Something like this:
if (sscanf(msg,"\001ACTION slaps %s with a 2GB log of W2K\001", kw))
/* blaat... */
Except this reacts on every line that begins with "ACTION slaps" :'(
It doesn't care if the rest after it is correct or not