9fans archive / 1995 / 11 / 74 / prev next From: Rob rob@pla... Subject: acme buglet Date: Thu, 9 Nov 1995 07:38:15 -0500 >> s = malloc(n*UTFmax+1); >> snprint(s, n*UTFmax+1, "%.*S", n, r); > What does this do if the malloc() fails? malloc() never fails in-line in alef. if memory is not available, malloc() issues a check, which in acme will cause an attempt at a save and exit. of course, if malloc fails, so will the save, but at least it tries.