On Thu, Feb 28, 2002 at 06:15:16PM -0600, David Stroupe wrote: > I need to use a function like strtok() and atoi() in a driver, but > loading stdlib causes all sorts of errors/warnings. What are my > alternatives? strtok is defined in lib/string.c. atoi is defined in arch/ia64/sn/io/sgi_if.c. Since the atoi is defined in an arch-specific file, you get to include your own copy. When there are four of them, someone will complain and consolidate them a bit, similar to zlib. :) If you intend to be looking for functions often, I highly recommend the help of either ctags or cscope. :) -- "I'm not sure which upsets me more: that people are so unwilling to accept responsibility for their own actions, or that they are so eager to regulate everyone else's." -- Kee Hinckley
Attachment:
pgp00032.pgp
Description: PGP signature