Skip to content
Snippets Groups Projects
Commit cf3df0ec authored by HyukSang Kwon's avatar HyukSang Kwon
Browse files

Update README.md

parent 51c2bfa3
No related branches found
No related tags found
No related merge requests found
...@@ -13,7 +13,7 @@ File Info ...@@ -13,7 +13,7 @@ File Info
- **main.c**: Implements input and output - **main.c**: Implements input and output
- **alloc.h**: Implements meta structure - **alloc.h**: Implements meta structure
- **alloc.c**: Implements malloc, free, and realloc - **alloc.c**: Implements malloc, free, and realloc
- **Makefile**: compiles the project - **Makefile**: compiles the
- **input** directory: saves the input file - **input** directory: saves the input file
TEST TEST
...@@ -27,47 +27,48 @@ TEST ...@@ -27,47 +27,48 @@ TEST
##### **Command structure in File** ##### **Command structure in File**
- - - - - -
> "Number of command lines" "Fit" "Number of command lines" "Fit"<br>
"Command" "Contents" "Command" "Contents"<br>
"Command" "Contents" "Command" "Contents"<br>
... ...<br>
##### **Fit type (case sensitive)** ##### **Fit type (case sensitive)**
- - - - - -
>F: first fit F: first fit<br>
B: Best fit B: Best fit<br>
W: worst fit W: worst fit<br>
##### **Command type** ##### **Command type**
- - - - - -
>**s** String: String The command to put the value into **s** String: String The command to put the value into<br>
**f** n: nth allocation area free **f** n: nth allocation area free<br>
**r** n m: reallocation with m bytes in the nth allocation area **r** n m: reallocation with m bytes in the nth allocation area<br>
**e** n: Allocate space without contents to n bytes **e** n: Allocate space without contents to n bytes<br>
##### **Output** ##### **Output**
- - - - - -
> “Free" "size" "content (if command is m only)" “Free" "size" "content (if command is m only)"<br>
"Free" "size" "content (if command is m only)" "Free" "size" "content (if command is m only)"<br>
... ...<br>
##### **Example** ##### **Example**
- - - - - -
>E1) E1)<br>
**Input** **Input**<br>
3 F 3 F<br>
m Think like a man of action and act like man of thought. m Think like a man of action and act like man of thought.<br>
m Courage is very important. Like a muscle, it is strengthened by use. m Courage is very important. Like a muscle, it is strengthened by use.<br>
m Life is the art of drawing sufficient conclusions from insufficient premises. m Life is the art of drawing sufficient conclusions from insufficient premises.<br>
**Output** **Output**<br>
0 56 Think like a man of action and act like man of thought. 0 56 Think like a man of action and act like man of thought.<br>
0 72 Courage is very important. Like a muscle, it is strengthened by use. 0 72 Courage is very important. Like a muscle, it is strengthened by use.<br>
0 80 Life is the art of drawing sufficient conclusions from insufficient premises. 0 80 Life is the art of drawing sufficient conclusions from insufficient premises.<br>
<br>
>E2) E2)<br>
**Input** **Input**<br>
2 F 2 F<br>
m Think like a man of action and act like man of thought. m Think like a man of action and act like man of thought.<br>
f 0 f 0<br>
**Output** **Output**<br>
1 56 1 56
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment