How could I change an array of character (string) to an integer number without using any ready function (ex atoi();) for example :-
char a[5]=\'4534\';
Without using any existing libraries, you have to:
Converting character to digit:
digit = character - '0';
Forming a number:
number = 0;
Loop:
number = number * 10 + digit;
Your function will have to check for '+' and '-' and other non-digits characters.