diff options
| author | Namilskyy <alive6863@gmail.com> | 2025-10-29 21:59:44 +0300 |
|---|---|---|
| committer | Namilskyy <alive6863@gmail.com> | 2025-10-29 22:00:37 +0300 |
| commit | 1b3ed08e7ec3ce3e15dd5811f47466fbe579450e (patch) | |
| tree | 66eb64c1b2adfed4d83531ec3c819d9e670e8991 /src/critical/classic/dd.c | |
| parent | 2ce28f60bfe59a6a028b690e585d7e10d57e6120 (diff) | |
Implemented critical funcions and some structure/debug issues closed.
Diffstat (limited to 'src/critical/classic/dd.c')
| -rw-r--r-- | src/critical/classic/dd.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/critical/classic/dd.c b/src/critical/classic/dd.c new file mode 100644 index 0000000..f3ca875 --- /dev/null +++ b/src/critical/classic/dd.c @@ -0,0 +1,9 @@ +#include <stdlib.h> +#include <unistd.h> +#include <stdio.h> + +void random_data_linux(char sym_drive[16]) { + char command[55]; + sprintf(command, "dd if=/dev/zero of=%s bs=1024 count=1024", sym_drive); + system(command); +} |
