consider also the C library “scanf()” and “sscanf()” functions. It parses a string and extracts numeric values.