Skip to content
Snippets Groups Projects
Commit 67b5362a authored by Hywon woong Jang's avatar Hywon woong Jang
Browse files

Ver 1.0 Complete free and malloc

parent 81530590
No related branches found
No related tags found
No related merge requests found
#ifndef _ALLOC_H_ #ifndef _ALLOC_H_
#define _ALLOC_H_ #define _ALLOC_H_
#include <unistd.h>
#include <stdio.h>
typedef struct meta_struct { typedef struct meta_struct {
struct meta_struct * prev;
struct meta_struct * next;
unsigned int free;
unsigned int size;
} meta; } meta;
typedef struct meta_manage {
meta * Head;
meta * Tail;
} manage;
manage META;
void * m_malloc(size_t size);
void * m_realloc(void *ptr , size_t size);
void * m_free (void * ptr);
void set_link(void);
meta * search_and_split(size_t size);
void print_link(void);
void reverse_print(void);
#endif #endif
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment