I don't usually write code for people; not part of my philosophy on teaching.
Many years ago in instructor training, I think that refered to as a "talking head".
Luckily I happen to have simple example sitting on my computer:
Apparently avoided a struggle. I can see the great savings in the below comparison. 8)
unsigned int value = atoi(buffer);
unsigned int n = readString.toInt();