Wow, octals. I thought noone ever used them...
Prepend it with a "0" and use the strtol(...) function.
As MSDN states:
"If the first character is 0 and the second character is not 'x' or 'X', the string is interpreted as an octal integer"
/Per
Nerdy signatures are as lame as the inconsistent stardates of STTNG.