9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Rob rob@plan9.att.com
Subject: acme buglet
Date: Thu,  9 Nov 1995 07:38:15 -0500	[thread overview]
Message-ID: <19951109123815.BBR72gfHKSAXj9iRQZ0zJHE5Qh4OBDkCyV8U70dy31k@z> (raw)

>>	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.






             reply	other threads:[~1995-11-09 12:38 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1995-11-09 12:38 Rob [this message]
  -- strict thread matches above, loose matches on Subject: below --
1995-11-06 15:58 philw
1995-11-04  7:03 Sandy
1995-10-29 19:35 Scott
1995-10-29 10:57 forsyth

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=19951109123815.BBR72gfHKSAXj9iRQZ0zJHE5Qh4OBDkCyV8U70dy31k@z \
    --to=9fans@9fans.net \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).