> Unless you make sure that the size is really only a few bytes, you > should avoid dynamic arrays or alloca() as it could otherwise blow away > your program.
I think that's a bit extreme. In general, allocations under a few K in size should be fine on the stack -- e.g., allocations of BUFSIZ or MAXPATHLEN are common and not problematic. Of course, it's possible to construct pathlogical cases, just as it's possible to construct pathlogical cases with C89 fixed-size stack-based allocations. -- meem _______________________________________________ opensolaris-code mailing list [email protected] http://mail.opensolaris.org/mailman/listinfo/opensolaris-code
