Search code examples
cstringembeddedstrstr

Find formatted string


I'm interested in something like strstr() function but that I could pass a formatted string as argument, like what I pass to printf(). To be clear, let's get an example:

Suppose that I want to find this text: "abc:123" where abc could be any string with any size followed by ':' and then followed by some integer number. I suppose a good function could receive as argument something like this: "%s:%d".

Something else, I want to use this embedded, so I can't get big and/or esoteric libraries.

Thanks and best regards!


Solution

  • Gentleman,

    I found this CRX and it is exactly what I wanted. Thanks everybody!