代码搜索:malloc
找到约 10,000 项符合「malloc」的源代码
代码结果 10,000
www.eeworm.com/read/216959/4877735
c rsvm.c
#include
#include
#include "svm.h"
#define Malloc(type,n) (type *)malloc((n)*sizeof(type))
/*
* svm_model
*/
struct svm_model
{
struct svm_parameter param; // parameter
int n
www.eeworm.com/read/294069/3920560
cpp chaosys.cpp
// mex -I. -O chaosys.cpp
#include
#include "mex.h"
#ifdef MATLAB_MEX_FILE
#undef malloc
#undef realloc
#undef free
#define malloc mxMalloc
#define realloc mxRealloc
#define free mxFree
#def
www.eeworm.com/read/366702/2867246
c placement3.c
typedef __SIZE_TYPE__ size_t;
extern "C" void *malloc (size_t);
int i;
struct S {
S(int) {
throw 3;
}
void *operator new(size_t s, int) {
++i;
return malloc (s);
}
void op
www.eeworm.com/read/352665/3093826
c rsvm.c
#include
#include
#include "svm.h"
#define Malloc(type,n) (type *)malloc((n)*sizeof(type))
/*
* svm_model
*/
struct svm_model
{
struct svm_parameter param; // parameter
int n
www.eeworm.com/read/351636/3102623
cxx test_matrix_fixed.cxx
// This is core/vnl/tests/test_matrix_fixed.cxx
#ifdef TEST_MALLOC // see note below, at the other #ifdef TEST_MALLOC
# include
#endif
#include
#include
www.eeworm.com/read/370728/9587061
cpp simplelinklist.cpp
#include "stdio.h"
#include "malloc.h"
struct node{int data;struct node *next;};
struct node *create_link()
{//建立链表
int x; struct node *h,*p,*r;
h=(struct node *)(malloc(sizeof(struct node)));
www.eeworm.com/read/204511/15337413
txt jiaobingcha.txt
#include
#include
#include
struct LNode{
int data;
struct LNode *next;
};
void Createlist_l(LNode* &l,int n){
l=(LNode*)malloc(sizeof(LNode));
l->next=NU
www.eeworm.com/read/148359/5714843
c ftsysmem.c
#include
#include FT_SYSTEM_MEMORY_H
static FT_Memory
ft_memory_new_default( FT_ULong size )
{
return (FT_Memory) ft_malloc( size );
}
static void
ft_memory_destroy_d
www.eeworm.com/read/119864/6082047
c mallocbug.c
/* Reproduce a GNU malloc bug. */
#include
#include
#include
#define size_t unsigned int
int
main (int argc, char *argv[])
{
char *dummy0;
char *dummy1;
char *
www.eeworm.com/read/432799/8573205
cpp 5-1.cpp
#include
#include
#define list_init_size 100
typedef struct
{
int * elem;
int length;
}sqlist;
void Initlist_seq(sqlist &l)
{
int n;
l.elem=(int*) malloc(list_init