Comment Comment by Asooka But why not use alloca instead of always allocating 10 elements on the stack you might not need?Edit: I would also be tempted to remove the ufds_on_stack variable and just check if the ufds pointer points to the stack or not. parent Asooka 9 years ago
Edit: I would also be tempted to remove the ufds_on_stack variable and just check if the ufds pointer points to the stack or not.