Skip to content
Snippets Groups Projects
Commit c30726ff authored by ChoiMinYoung's avatar ChoiMinYoung
Browse files

first_commit

parent 81530590
Branches master
No related tags found
No related merge requests found
#include "alloc.h" #include "alloc.h"
#include <stdint.h>
void *m_malloc(size_t size)
{
}
#ifndef _ALLOC_H_ #ifndef _ALLOC_H_
#define _ALLOC_H_ #define _ALLOC_H_
#include <stdint.h>
typedef struct meta_struct { typedef struct meta_struct {
int* prev;
int* next;
uint_32_t free; // free == true 이면 비어있는 공간
// free == faluse 이면 할당되어있는공간
uint_32_t size;
} meta; } meta;
......
main 0 → 100755
File added
#include "alloc.h" #include "alloc.h"
#include <sys/typed.h>
#include <unistd.h>
#include <stdint.h>
int main() int main()
{ {
int brk(*addr);
void *sbrk(intptr_t incr);
return 0; return 0;
} }
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment