question about code

Jouni Malinen jkmaline at
Mon Apr 17 22:59:04 EDT 2006

On Mon, Apr 17, 2006 at 02:45:26PM -0400, borgit wrote:

> We are trying to make some modifications to the hostAP code where we want to
> use the functions atoi() and itoa() to perform integer to string conversion
> (and vice-versa).  The problem is that we can't seem to include the stdlib.h
> library (that contains these functions) in the code.  Attempts to do so
> yield errors during compilation that say that the library is not found in
> the specific path, or if we copy the library to the asm directory, then the
> library is included, but there are compile errors that are found inside the
> library.

What exactly are you referring to with "hostAP"? Host AP driver, i.e.,
kernel code? Standard C libraries are not generally available in
kernel.. What kind of integer/string conversion do you need in the
kernel? In many cases, I would expect there to be a better way of doing
this and the conversion could be avoided completely.

linux/kernel.h has prototypes for number of related functions
(simple_strto* family for string->int and sprintf for int->string).

Jouni Malinen                                            PGP id EFC895FA

More information about the HostAP mailing list