get a integer from char* ...?

...2+5+6 as integers...

That works, but you'd need to change it a bit: 2 * 100 + 5 * 10 + 6 * 1 = 256.