MCPcopy Create free account
hub / github.com/creatale/node-dv / Erealloc

Function Erealloc

deps/tesseract/cutil/emalloc.cpp:64–75  ·  view source on GitHub ↗

---------------------------------------------------------------------------*/

Source from the content-addressed store, hash-verified

62
63/*---------------------------------------------------------------------------*/
64void *Erealloc(void *ptr, int size) {
65 void *Buffer;
66
67 if (size < 0 || (size == 0 && ptr == NULL))
68 DoError (ILLEGALMALLOCREQUEST, "Illegal realloc request size");
69
70 Buffer = (void *) realloc (ptr, size);
71 if (Buffer == NULL && size != 0)
72 DoError (NOTENOUGHMEMORY, "Not enough memory");
73 return (Buffer);
74
75} /* Erealloc */
76
77
78/*---------------------------------------------------------------------------*/

Callers 4

AddConfigToClassFunction · 0.85
AddProtoToClassFunction · 0.85
AddIntProtoFunction · 0.85
ExpandBitVectorFunction · 0.85

Calls 1

DoErrorFunction · 0.85

Tested by

no test coverage detected