delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2000/08/05/10:29:22

Message-Id: <200008051429.KAA20951@delorie.com>
Date: Sat, 05 Aug 2000 17:32:07 +0200
To: rich AT phekda DOT freeserve DOT co DOT uk
X-Mailer: Emacs 20.6 (via feedmail 8.2.emacs20_6 I) and Blat ver 1.8.5b
From: "Eli Zaretskii" <eliz AT is DOT elta DOT co DOT il>
CC: djgpp-workers AT delorie DOT com
In-reply-to: <398B59B4.C3D90F4B@phekda.freeserve.co.uk> (message from Richard
Dawe on Sat, 05 Aug 2000 01:03:00 +0100)
Subject: Re: Small patch for assert() info page
References: <398B59B4 DOT C3D90F4B AT phekda DOT freeserve DOT co DOT uk>
Reply-To: djgpp-workers AT delorie DOT com
Errors-To: nobody AT delorie DOT com
X-Mailing-List: djgpp-workers AT delorie DOT com
X-Unsubscribes-To: listserv AT delorie DOT com

> Date: Sat, 05 Aug 2000 01:03:00 +0100
> From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
> 
> Below is a small diff to add the ellipsis to the example in assert().
> Without it the function seems to end rather abruptly. ;)

Thanks.  I modified the example to be even more practical, see below.


@subheading Example

@example
/* Like `strdup', but doesn't crash if the argument is NULL.  */
char * safe_strdup(const char *s)
@{
  assert(s != 0);
  return strdup(s);
@}
@end example

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019