diff options
author | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-08 01:42:00 +0000 |
---|---|---|
committer | Fudgerboy <91767657+Fudgerboy@users.noreply.github.com> | 2024-04-08 01:42:00 +0000 |
commit | 6df9122f174465fd69f62f4ebb5e860affbded2a (patch) | |
tree | 21428e8b4b764b869003d8491b1640c3d44573f2 | |
parent | a4eea112f8a24bf5fa57ba76a3fbb70be2a97020 (diff) |
Sun, Apr 7, 2024, 6:42 PM -07:00
-rw-r--r-- | main.c | 1 | ||||
-rw-r--r-- | wk4/pset/recover/recover.c | 3 |
2 files changed, 3 insertions, 1 deletions
@@ -1,5 +1,6 @@ #include <cs50.h> #include <ctype.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> diff --git a/wk4/pset/recover/recover.c b/wk4/pset/recover/recover.c index a70f206..9b9b8c2 100644 --- a/wk4/pset/recover/recover.c +++ b/wk4/pset/recover/recover.c @@ -1,5 +1,6 @@ #include <cs50.h> #include <ctype.h> +#include <stdint.h> #include <stdio.h> #include <stdlib.h> #include <string.h> @@ -23,7 +24,7 @@ int main(int argc, char *argv[]) // initialize variables for use in restoring jpegs uint8_t buffer[512]; int files = -1; - char *name[8]; + char name[8]; // restoring jpegs while(fread(buffer, 1, 512, card) == 512) |