|
From: Sebastien M. <seb...@te...> - 2002-12-11 03:44:47
|
Hi Zach, If you use the include stdlib and want to use your own atoi definition, you have to definite it (not only the declaration) in a specific header your will include in all file where you use this function. You must be sure that your file with the definition of atoi is include AFTER stdlib.h if you use it in the same file. In all tests I made it works. Have fun in coding, Sebastien. On Tue, Dec 10, 2002 at 09:20:57PM -0500, Zachary Uram wrote: > At 03:27 AM 12/10/02, Per Westermark wrote: > >Yes, I can see that your code does try to use the <strlib.h> file, but > >there are no such standard file. Whenever you find that Dev-C++ is missing > >a standard include file, there is a very, very large proability that you > >have either misspelled the include file, or that it isn't such a STANDARD > >include file, but something special installed by some 3rd party tool on a > >machine somewhere. > > > >That's why I wondered if it wasn't <stdlib.h> that should be used instead. > >It might also be the <string.h> file that was intended. > > > ><stdlib.h> contains among other things atoi() implemented in your source. > ><string.h> contans strchr() declaration. > > > Hi Per, > > How can I tell the compiler to use my verson of atoi() and not the one in > the stdlib.h library? > I will try replacing strlib.h with string.h as well. > > Zach > > Zachary Uram > John 3:16 > <>< > > > > ------------------------------------------------------- > This sf.net email is sponsored by: > With Great Power, Comes Great Responsibility > Learn to use your power at OSDN's High Performance Computing Channel > http://hpc.devchannel.org/ > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www.noicys.cjb.net/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > -- Time remaining: 28 weeks 6 days 3 hours 6 minutes |