I realise that the topic of char to int has been covered quite extensively in a number of posts but I can't see anything which discusses the conversion of a char array to an int avoiding dynamic memory allocation. To put my question into context I'm looking to run my code on a microcontroller and I'm worried about dynamic memory allocation causing problems. I realise methods such as atoi don't provide any error detection - but to my knowledge it doesn't dynamically allocate memory.