搜索结果
找到约 44 项符合
MALLOC 的查询结果
按分类筛选
软件设计/软件工程 FreeBSD-7 kernel malloc source code analysis
FreeBSD-7 kernel malloc source code analysis
VC书籍 实现C语言中的malloc()函数
实现C语言中的malloc()函数,以及free()函数
嵌入式综合 μClinux内存管理分析
laClinux内存管理采用非标准Linux内存模型。系统为进程分配连续内存区域,代码段、数据段和栈段间无空隙,且进程私有堆被取消,所有进程共享由操作系统管理的堆空间。最简单的malloc利用mmap从核心空闲内存池中分配内存以实现。并采用存储器分页管理,系统启动时把实际存储器分页,加载应用程序时再程序分页加载 ...
单片机开发 UART I/O and Memory Allocation Example for GNU The project GNU_IODemo shows how to use memory alloc
UART I/O and Memory Allocation Example for GNU
The project GNU_IODemo shows how to use memory allocation routines (malloc) and char I/O (printf, scanf) via a serial interface with the GNU toolchain.
The I/O functions are adapted for the Analog Devices ADuC7000 series using the SERIAL.C module.
The ...
Windows CE This code detects memory leaks in embedded VC++ almost the same way crtdbg does in VC++. At the end
This code detects memory leaks in embedded VC++ almost the same way crtdbg does in VC++. At the end of program execution it will display in the debug window if there were any memory leaks and how the memory looks so you can identify where your memory leak occurred. It will display in the debug windo ...
其他 * Function: * 1. Replace the first oldstr with newstr in srcstr * Arguments: * IN : * srcst
* Function:
* 1. Replace the first oldstr with newstr in srcstr
* Arguments:
* IN :
* srcstr
* oldstr
* newstr
* OUT :
* srcstr
* Return:
* 1. If find and replace one oldstr with newstr in srcstr , return 1
* 2. If find no oldstr in srcstr , return 0
* 3. If error (malloc return NULL) ...
编译器/解释器 #include "define.h" #include <stdio.h> #include <string.h> #include <ctype.h>
#include "define.h"
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <malloc.h>
FILE *fp
/*//////////////////////////////////////////////////////////////////////////////
This is a pretreatment.
/////////////////////////////////////////////////////////////////////////////*/
void r ...
嵌入式/单片机编程 一个简单实用的内存管理程序
一个简单实用的内存管理程序,可以完成malloc/free功能。
软件设计/软件工程 实习题 [问题描述] 1. 设顺序表中的数据元素递增有序
实习题
[问题描述]
1. 设顺序表中的数据元素递增有序,将插入到顺序表的适当位置上,是该表仍然有序。
[输入]
初始顺序表,插入字符。
[输出]
插入x后线性表的结果
[存储结构]
采用顺序存储结构
[算法的基本思想]
建立一个递增顺序表,插入一个数值并移动元素,使其仍然有序。
程序如下:
#include "iostream.h"
#include ...
数据结构 1.[问题描述] 编写递归算法
1.[问题描述]
编写递归算法,计算二叉树中叶子结点的数目
[输入]
按照先序序列的顺序输入该结点的内容。其输入abd eh cf i g .
[输出]
按中序序列输出,输出的结果为;dbheaficg并计算出二叉树中叶子结点的数目为4
[存储结构]
采用二叉表存储
[算法的基本思想]
采用递归方法建立和遍历二叉树。首先建立二叉树的根结点,然 ...