?? calloc.3
字號:
.\" Copyright (c) 1987 Entropic Speech, Inc.; All rights reserved.\" @(#)calloc.3 1.3 30 Apr 1997 ESI.TH CALLOC 3\-ESPSu 30 Apr 1997.ds ]W "\fI\s+4\ze\h'0.05'e\s-4\v'-0.4m'\fP\(*p\v'0.4m'\ Entropic Speech, Inc..SH "NAME"calloc_s \- call Unix memory allocator (calloc) for shorts.brcalloc_i \- call Unix memory allocator (calloc) for ints.brcalloc_l \- call Unix memory allocator (calloc) for longs.brcalloc_f \- call Unix memory allocator (calloc) for floats.brcalloc_d \- call Unix memory allocator (calloc) for doubles.SH "SYNOPSIS".ft B#include <esps/esps.h>.PP.ft B.nfshort *calloc_s(n)unsigned n;.spint *calloc_i(n)unsigned n;.splong *calloc_l(n)unsigned n;.spfloat *calloc_f(n)unsigned n;.spdouble *calloc_d(n)unsigned n;.fi.ft R.SH "DESCRIPTION".PPThese macros call \fIcalloc\fR(3C) to allocate a block of memory of size\fIn\fR of the correct type (depending on which macro was used). Sincecalloc is called, the block is zero filled..PPThese macros are defined in \fI<esps/esps.h>\fR and should not bedeclared in your program..SH EXAMPLE.PP.nf\fI/* get a zero filled block of 100 floats and shorts */\fRfloat *fptr;short *sptr;.spfptr = calloc_f(100);sptr = calloc-s(100);.fi.SH DIAGNOSTICS.PP.SH "SEE ALSO".PPmalloc(3C), calloc(3C), \fImalloc\fR(3\-ESPSu)
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -