The function isn't defined at line 390; it's simply used. The return value and variables passed are consistent with my declaration - returns an int, and is passed a char, char* and an int. I'll post the files later tonight if I still can't figure it out (I'm on a different computer at the moment, and don't have time to copy the files over, so I was just using SSH).