Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!uupsi!sunic!sics.se!ollef From: ollef@sics.se (Olle Furberg) Newsgroups: comp.sys.mac.programmer Subject: Whatis XTOI ? Message-ID: <1991Mar29.155154.25252@sics.se> Date: 29 Mar 91 15:51:54 GMT Sender: news@sics.se Organization: Satellite Image in Kiruna Corporation Lines: 25 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