diff options
author | dkf <dkf@noemail.net> | 2002-10-09 09:38:38 (GMT) |
---|---|---|
committer | dkf <dkf@noemail.net> | 2002-10-09 09:38:38 (GMT) |
commit | 3fba410c39342ef4c6186ff561fe1461c27442e6 (patch) | |
tree | fb7c280134db35bdc20650483d12cd2ee6c21393 /doc/Alloc.3 | |
parent | 0b63aa09131fb87745c8d53f98c2a51c984fbc2b (diff) | |
download | tcl-3fba410c39342ef4c6186ff561fe1461c27442e6.zip tcl-3fba410c39342ef4c6186ff561fe1461c27442e6.tar.gz tcl-3fba410c39342ef4c6186ff561fe1461c27442e6.tar.bz2 |
* doc/Alloc.3: Added a note to mention that attempting to allocate
a zero-length block can return NULL. [Tk bug 619544]
FossilOrigin-Name: 23eef0513d3dadc71ec9922d027933df6e2b6eb4
Diffstat (limited to 'doc/Alloc.3')
-rw-r--r-- | doc/Alloc.3 | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/doc/Alloc.3 b/doc/Alloc.3 index ffb01ad..e016a6d 100644 --- a/doc/Alloc.3 +++ b/doc/Alloc.3 @@ -4,7 +4,7 @@ '\" See the file "license.terms" for information on usage and redistribution '\" of this file, and for a DISCLAIMER OF ALL WARRANTIES. '\" -'\" RCS: @(#) $Id: Alloc.3,v 1.7 2002/07/01 18:24:38 jenglish Exp $ +'\" RCS: @(#) $Id: Alloc.3,v 1.8 2002/10/09 09:38:38 dkf Exp $ '\" .so man.macros .TH Tcl_Alloc 3 7.5 Tcl "Tcl Library Procedures" @@ -75,7 +75,9 @@ sizes. The returned location may be different from \fIptr\fR. function to \fBTcl_Alloc\fR and \fBTcl_Realloc\fR, except that \fBTcl_AttemptAlloc\fR and \fBTcl_AttemptRealloc\fR will not cause the Tcl interpreter to \fBpanic\fR if the memory allocation fails. If the -allocation fails, these functions will return NULL. +allocation fails, these functions will return NULL. Note that on some +platforms, attempting to allocate a block of memory will also cause +these functions to return NULL. .PP The procedures \fBckalloc\fR, \fBckfree\fR, \fBckrealloc\fR, \fBattemptckalloc\fR, and \fBattemptckrealloc\fR are implemented |