代码搜索:realloc
找到约 1,059 项符合「realloc」的源代码
代码结果 1,059
www.eeworm.com/read/440906/1781899
c m-un-2.c
/* { dg-do compile } */
/* { dg-options "-W -Wall" } */
typedef unsigned long size_t;
extern void* malloc (size_t);
extern void free (void*);
extern void* realloc (void*, size_t);
struct vtable {
www.eeworm.com/read/350504/3124736
c mem.c
/*
* mem.c - Demonstrate malloc, calloc, realloc, and free usage
*/
#include
#include
void err_quit(char *);
void prn(char *, char *, int);
int main(void)
{
char *c, *d, *e;
www.eeworm.com/read/110561/15530941
asm undo.asm
;撤消与重做
_PushUndo proto:DWORD ,:DWORD ,:DWORD ,:DWORD
_realloc_undo proto
_InitUndo proto
_UndoEnd proto
_Undo proto
_SetScroll proto
UNDO_INPUT=1
UNDO_DELETE=2
UNDO_INSERT=3
U
www.eeworm.com/read/240162/4580790
c warn01.c
// { dg-do assemble }
// { dg-options "-W -Wall" }
typedef unsigned long size_t;
extern void* malloc (size_t);
extern void free (void*);
extern void* realloc (void*, size_t);
struct vtable {
void
www.eeworm.com/read/233448/4673609
c warn01.c
// { dg-do assemble }
// { dg-options "-W -Wall" }
typedef unsigned long size_t;
extern void* malloc (size_t);
extern void free (void*);
extern void* realloc (void*, size_t);
struct vtable {
void
www.eeworm.com/read/233448/4684032
c m-un-2.c
/* { dg-do compile } */
/* { dg-options "-W -Wall" } */
typedef __SIZE_TYPE__ size_t;
extern void* malloc (size_t);
extern void free (void*);
extern void* realloc (void*, size_t);
struct vtable {
www.eeworm.com/read/209211/4983035
c readcons.c
#include
#include
#include "drawterm.h"
void*
erealloc(void *v, ulong n)
{
v = realloc(v, n);
if(v == nil)
sysfatal("out of memory");
return v;
}
char*
estrdup(char *s)
{
s = st
www.eeworm.com/read/312645/3651456
changelog
2008-01-06 Andrew Lunn
* src/dlmalloc.cxx (MALLOC_COPY):
* cdl/memalloc.cdl: Use memmove instead of memcpy which can go
wrong in realloc() when the new and old block
www.eeworm.com/read/366702/2869668
c warn01.c
// { dg-do assemble }
// { dg-options "-W -Wall" }
typedef unsigned long size_t;
extern void* malloc (size_t);
extern void free (void*);
extern void* realloc (void*, size_t);
struct vtable {
void
www.eeworm.com/read/366702/2881093
c m-un-2.c
/* { dg-do compile } */
/* { dg-options "-W -Wall" } */
typedef __SIZE_TYPE__ size_t;
extern void* malloc (size_t);
extern void free (void*);
extern void* realloc (void*, size_t);
struct vtable {