If the numbers are surrounded by quotes, finding them should be easy. Then you can collect them into a string and use strtol() to convert the number to an integer.