getsingle function

getsingle extracts one number from an input line of characters