⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 alloc.3

📁 linux下qmail的源码 本人加了一些注释
💻 3
字号:
.TH alloc 3.SH NAMEalloc \- allocate memory.SH SYNTAX.B #include <alloc.h>char *\fBalloc\fP(\fInew\fR);void \fBalloc_free\fP(\fIx\fR);void \fBalloc_re\fP(&\fIx\fR,\fIold\fR,\fInew\fR);char *\fIx\fR;.brunsigned int \fIold\fR;.brunsigned int \fInew\fR;.SH DESCRIPTION.B allocallocates enough space from the heap for.I newbytes of data,adequately aligned for any data type..I newmay be 0..B allocreturns a pointer to the space.If space is not available,.B allocreturns 0,setting.B errnoappropriately..B alloc_freereturns space to the heap..B alloc_reexpands the space allocated to.I xfrom.I oldbytes to.I newbytes.It allocates new space,copies.I oldbytes from the old space to the new space,returns the old space to the heap,and changes.I xto point to the new space.It then returns 1.If space is not available,.B alloc_rereturns 0,leaving the old space alone..SH "SEE ALSO"sbrk(2),malloc(3),error(3)

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -