diff options
| author | Johnny Richard <johnny@johnnyrichard.com> | 2025-04-14 23:22:57 +0200 |
|---|---|---|
| committer | Johnny Richard <johnny@johnnyrichard.com> | 2025-04-14 23:22:57 +0200 |
| commit | b3bd068f614a46580ee3e5688dd9cfd40694d75b (patch) | |
| tree | 45183f99a8373527caa03ff473c4e40fe07cd459 /src/utils.c | |
| parent | 63104d34e1c1772131f6366f825e67f38d027dba (diff) | |
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'src/utils.c')
| -rw-r--r-- | src/utils.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/utils.c b/src/utils.c index fee048d..3bf3cc0 100644 --- a/src/utils.c +++ b/src/utils.c @@ -14,14 +14,14 @@ * You should have received a copy of the GNU General Public License * along with this program. If not, see <https://www.gnu.org/licenses/>. */ +#include "utils.h" #include <stdio.h> #include <stdlib.h> -#include "utils.h" -char * -read_file_contents(char *file_path) +char* +read_file_contents(char* file_path) { - FILE *file; + FILE* file; int file_size; file = fopen(file_path, "r"); @@ -48,7 +48,7 @@ read_file_contents(char *file_path) return NULL; } - char *file_content = (char *)calloc(file_size + 1, sizeof(char)); + char* file_content = (char*)calloc(file_size + 1, sizeof(char)); if (file_content == NULL) { fprintf(stderr, "Could not allocate mem for file_content\n"); fclose(file); |
