?? malloc.3
字號:
.\" Copyright (c) 1987-1990 Entropic Speech, Inc..\" Copyright (c) 1997 Entropic Research Laboratory, Inc. All rights reserved..\" @(#)malloc.3 1.3 18 Apr 1997 ESI/ERL.ds ]W (c) 1997 Entropic Research Laboratory, Inc..TH MALLOC 3\-ESPSu 18 Apr 1997.SH "NAME"malloc_s \- call Unix memory allocator for shorts.brmalloc_i \- call Unix memory allocator for ints.brmalloc_l \- call Unix memory allocator for longs.brmalloc_f \- call Unix memory allocator for floats.brmalloc_d \- call Unix memory allocator for doubles.SH "SYNOPSIS".ft B#include <esps/esps.h>.PP.ft B.nfshort *malloc_s(n)unsigned n;.spint *malloc_i(n)unsigned n;.splong *malloc_l(n)unsigned n;.spfloat *malloc_f(n)unsigned n;.spdouble *malloc_d(n)unsigned n;.fi.ft R.SH "DESCRIPTION".PPThese macros call \fImalloc\fR(3C) to allocate a block of memory of size\fIn\fR of the correct type (depending on which macro was used)..PPThese macros are defined in \fI<esps/esps.h>\fR and should not bedeclared in your program..SH EXAMPLE.PP.nf\fI/* get a block of 100 floats and shorts */\fRfloat *fptr;short *sptr;.spfptr = malloc_f(100);sptr = malloc-s(100);.fi.SH DIAGNOSTICS.PP.SH "SEE ALSO".PP.nf\fImalloc\fP(3), \fIcalloc\fP(3), \fIcalloc\fP(3\-ESPSu).fi
?? 快捷鍵說明
復制代碼
Ctrl + C
搜索代碼
Ctrl + F
全屏模式
F11
切換主題
Ctrl + Shift + D
顯示快捷鍵
?
增大字號
Ctrl + =
減小字號
Ctrl + -