From mboxrd@z Thu Jan 1 00:00:00 1970 Date: Thu, 9 Nov 1995 07:38:15 -0500 From: Rob rob@plan9.att.com Subject: acme buglet Topicbox-Message-UUID: 33b4f4f2-eac8-11e9-9e20-41e7f4b1d025 Message-ID: <19951109123815.BBR72gfHKSAXj9iRQZ0zJHE5Qh4OBDkCyV8U70dy31k@z> >> 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.