Good post Whitesoup12. I wonder why the Prof. wanted to return 0 as an error. I was taught to return -1 instead.