[comp.sys.mac.programmer] Whatis XTOI ?

ollef@sics.se (Olle Furberg) (03/29/91)

  I have some problems with a source file written for MPW C, I'm trying to
use it in a Think C project. After several tries I've decided to compile
it in MPW C and then open it as a library in Think C (through the oConv
utility).

  When I try to link all these things (in Think C) i get a merror message
stating: "undefined: _XTOI (MyLibrary)". I guess this means that MyLibrary
makes a call to a function called XTOI, but can't find it. Not that the
original source file didn't contain any call to neither XTOI() nor atoi().

I've tried to include the following function definition into the project (in
the hope that XTOI is just a small modification of atoi:

  int _XTOI(char *mystring){
	  return (int) strtol(mystring, NIL, 15);
           }

The linker doesn't complain, but I get a big crash when I call a function from
the library.

  Anyone who could explain what XTOI is supposed to do, and how I should deal 
with the call?

     /Olle