On Mon, 6 Apr 2009, Ian King wrote:
I used to ask college grads to write a function in C
to convert a
null-terminated string representing an octal number into an int. My
I used to make all of my first semester programming students in C and in
80x86 ASM write their own atoi() function. The ASM students also had to
modify it for hex and octal.
When people say there's no such thing as a stupid
question, I disagree:
"Will this be on the test?"
My answer was ALWAYS "yes". If
they ask about it, then it gets added to
the test.
--
Grumpy Ol' Fred cisin at
xenosoft.com