Except for missing sscanf(), all usual means of the C-language can be applied. It usually ends up in a combination of string processing and atoi() for conversion of decimal to numbers.
No, because nothings has been said yet about the message format. Besides numeric arguments, there are usually elements like command tokens, field delimiters and frame delimiters.