okay, maybe i wasn't clear on this. When I say i want to check for
"v1.2.54" it is not fixed, meaning, my code needs to dynamically picks
up that I want to search for the version number on a application. That
application can changed to v1.3.4 and so on in the future.
So my program will have to pick up the pattern to check for that
version which will always be like this pattern : "vX.XX.AXXX" being X
as numeric and A as alphabet.
Hope this clears up the situation here?
Well, in a way, it does clear up the situation. It's becoming clear
that you have some very basic things to learn before writing a C
program.
Do you have any experience programming in any language? I would
suggest that you get a copy of Kernighan and Ritchie, "The C
Programming Language" and study it carefully. It's perhaps the best
tutorial around, but the writing is not verbose, and you have to pay
attention.