由买买提看人间百态

boards

本页内容为未名空间相应帖子的节选和存档,一周内的贴子最多显示50字,超过一周显示500字 访问原贴
Unix版 - [转载] help about C: realloc
相关主题
[转载] 为什么会在调用malloc时Segmentation fault?how to use function calloc of c in fortran?
[转载] Re: 为什么会在调用malloc时Segmentation fault?[转载] two programming questions
alloc memory in UNIX请问,malloc函数怎样实现?
interview questiondtrace问题
[转载] shared library一问[转载] Re: about incoming email
Is it possible?[转载] 再请教高手
Memory check problem?[转载] 请教高手
async-signal safe 问题[转载] 请教LPR,LPD,...
相关话题的讨论汇总
话题: realloc话题: about话题: array话题: function话题: program
进入Unix版参与讨论
1 (共1页)
i**********r
发帖数: 36
1
【 以下文字转载自 Linux 讨论区 】
【 原文由 interstellar 所发表 】
does anyone know of reported bugs of the C function realloc in linux?
when i use this function, it works for the first few data sets,
then the program reports - segmentation error - and crashes.
I ran into such situations several times. And every time, i did tell
the program to free the memory. i have to use a tmp array to first remember
the old dynamic array, then malloc a new size and copy back the old values.
this is kind of stupid, are there any
1 (共1页)
进入Unix版参与讨论
相关主题
[转载] 请教LPR,LPD,...[转载] shared library一问
[转载] perl help: how to copy, not linkIs it possible?
[转载] 请教作动画Memory check problem?
[转载] wget 一问 -- urgentasync-signal safe 问题
[转载] 为什么会在调用malloc时Segmentation fault?how to use function calloc of c in fortran?
[转载] Re: 为什么会在调用malloc时Segmentation fault?[转载] two programming questions
alloc memory in UNIX请问,malloc函数怎样实现?
interview questiondtrace问题
相关话题的讨论汇总
话题: realloc话题: about话题: array话题: function话题: program