> All network address strings have a bounded length, therefore you can
> allocate a string buffer for each address on the stack in the caller,
> and have the inet_ntoa()-like functions fill it. This buffer can be
> passed to printk() with an ordinary "%s" flag.
Still too much code duplication (and it reeks of the SMALLBUF, BIGBUF
things found in too many apps). This is _perfect_ stuff for writing a
suitable library function.
Olaf
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@vger.rutgers.edu
Please read the FAQ at http://www.tux.org/lkml/
This archive was generated by hypermail 2b29 : Sun Apr 23 2000 - 21:00:10 EST