This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <time.h> | |
| #include <sys/time.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define TIMESTAMP_FORMAT "%Y-%m-%d %H:%M:%S" | |
| char* str_contructor(char* args[]); | |
| char* timestamp() |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <string.h> | |
| #include <stdlib.h> | |
| #include <unistd.h> | |
| #include <pwd.h> | |
| #define TRASH_DIR "/deleted" | |
| #define PATH_LEN 200 | |
| #define CONCATENATE_BUFFER_LEN 100 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <time.h> | |
| #include <sys/time.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #include <unistd.h> | |
| #define CLOCK_MAX 50000 | |
| #define MAX 20000 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #include <string.h> | |
| #define BUFFER_SIZE 1024 | |
| #define WORD_SIZE 5 | |
| char* get_input(void) | |
| { | |
| char c; | |
| char* buffer; | |
| buffer=(char*)malloc(BUFFER_SIZE*sizeof(char)); |