2 ms·
I think assert() is usually used by people who are going to just turn them off during a "production" build (with -NDEBUG).
by sp332 10y ago
I think assert() is usually used by people who are going to just turn them off during a "production" build (with -NDEBUG).
- loeg 10y agoAnd GP is right that in that case, you really want calloc to return NULL rather than an overflowed (short) non-NULL allocation.