JLU_WangCT

导航

2011年12月3日 #

进程内存分配大小上限查询

摘要: #include <stdio.h>#include <stdlib.h>int main(){ int MB = 0; while(malloc(1 << 20) )MB++; printf("Allocated %d MB total\n", MB); return 0;} 阅读全文

posted @ 2011-12-03 00:24 WangCT 阅读(298) 评论(1) 推荐(1) 编辑