Lines Matching refs:malloc
31 * Ensure that errno is set if malloc() fails.
56 * Portable replacement for malloc().
57 * If malloc() fails (e.g returns NULL)
58 * then return ENOMEM unless malloc() sets errno for us on this system
59 * and ensure malloc(0) returns a non-NULL pointer.
70 * ANSI does not insist setting errno when malloc() fails.
72 * an errno when malloc() fails.
73 * Thus, on systems that implement malloc() where an errno is not
83 * MKS code seems to rely on malloc(0) returning a valid pointer.
86 * According to ANSI (4.10.3 line 18-19) the result of malloc(0) is
91 if ((ptr = malloc(amount)) == NULL) {