summaryrefslogtreecommitdiff
path: root/src/utils.c
diff options
context:
space:
mode:
authorJohnny Richard <johnny@johnnyrichard.com>2025-04-14 23:22:57 +0200
committerJohnny Richard <johnny@johnnyrichard.com>2025-04-14 23:22:57 +0200
commitb3bd068f614a46580ee3e5688dd9cfd40694d75b (patch)
tree45183f99a8373527caa03ff473c4e40fe07cd459 /src/utils.c
parent63104d34e1c1772131f6366f825e67f38d027dba (diff)
Define clang-format and .editorconfig settingsHEADmaster
Signed-off-by: Johnny Richard <johnny@johnnyrichard.com>
Diffstat (limited to 'src/utils.c')
-rw-r--r--src/utils.c10
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);