On Fri, 7 Jul 2000, Willy Tarreau wrote:
> when I need function which return statically allocated strings, I
> sometimes use sort of a round-robbin buffer, shared by several
> functions. This way, I can call the same function several times
> without allocating memory, and the number of calls is just limited
> by the total size. Here comes an example (from scratch, completely
> untested).
>
> Any comments ?
Not threadsafe.
-- "Love the dolphins," she advised him. "Write by W.A.S.T.E.."- 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 : Fri Jul 07 2000 - 21:00:21 EST