From b3bd068f614a46580ee3e5688dd9cfd40694d75b Mon Sep 17 00:00:00 2001 From: Johnny Richard Date: Mon, 14 Apr 2025 23:22:57 +0200 Subject: Define clang-format and .editorconfig settings Signed-off-by: Johnny Richard --- src/utils.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/utils.c') 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 . */ +#include "utils.h" #include #include -#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); -- cgit v1.2.3