1 .\" Copyright (c) 2003 Andries Brouwer (aeb@cwi.nl)
3 .\" This is free documentation; you can redistribute it and/or
4 .\" modify it under the terms of the GNU General Public License as
5 .\" published by the Free Software Foundation; either version 2 of
6 .\" the License, or (at your option) any later version.
8 .\" The GNU General Public License's references to "object code"
9 .\" and "executables" are to be interpreted as the output of any
10 .\" document formatting or typesetting system, including
11 .\" intermediate and printed output.
13 .\" This manual is distributed in the hope that it will be useful,
14 .\" but WITHOUT ANY WARRANTY; without even the implied warranty of
15 .\" MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
16 .\" GNU General Public License for more details.
18 .\" You should have received a copy of the GNU General Public
19 .\" License along with this manual; if not, write to the Free
20 .\" Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111,
23 .\" Japanese Version Copyright (c) 2004 Yuichi SATO
24 .\" all rights reserved.
25 .\" Translated Mon Jul 19 04:38:03 JST 2004
26 .\" by Yuichi SATO <ysato444@yahoo.co.jp>
28 .TH CFREE 3 2007-07-26 "" "Linux Programmer's Manual"
30 cfree \- 割り当てられたメモリを解放する
34 .B "#include <stdlib.h>"
37 .BI "int cfree(void *" ptr );
39 /* glibc と FreeBSD libcompat では */
40 .BI "void cfree(void *" ptr );
42 /* SCO OpenServer では */
43 .BI "void cfree(char *" ptr ", unsigned " num ", unsigned " size );
45 /* Solaris watchmalloc.so.1 では */
46 .BI "void cfree(void *" ptr ", size_t " nelem ", size_t " elsize );
51 .RB ( feature_test_macros (7)
56 _BSD_SOURCE || _SVID_SOURCE
67 の別名であり、「SunOS との互換性のために追加された」。
69 他のシステムでは、この名前の別の関数がある。
76 SCO と Solaris のいくつかのバージョンでは、
79 が含まれる malloc ライブラリがある。
87 #define cfree(p, n, s) free((p))
104 SCO のマニュアルには以下のように記述されている:
105 「cfree ルーチンは iBCSe2 規格に従うために提供されており、
107 cfree の num と size 引き数は使用されない。」
112 の別名) は、成功した場合に 1 を返し、失敗した場合に 0 を返す。
121 系のルーチンの 1 つで以前に割り当てられた
124 SCO で用いられている引き数が 3 つの
127 Intel386 Binary Compatibility Specification, Edition 2
128 (Intel386 バイナリ互換仕様、第 2 版) に準拠する。