From 0a317ddd1dc00098bdaf171e8a24720adf7cb406 Mon Sep 17 00:00:00 2001 From: "github-actions[bot]" Date: Fri, 6 Sep 2024 18:40:39 +0000 Subject: [PATCH] ci: format code --- libs/cells/constructors.c | 2 +- libs/cells/constructors.h | 4 +--- libs/cells/methods.c | 2 +- libs/cells/methods.h | 4 +--- libs/macros.h | 4 +--- libs/main.h | 2 +- libs/utilities.c | 2 +- libs/utilities.h | 11 +++++++---- 8 files changed, 14 insertions(+), 17 deletions(-) diff --git a/libs/cells/constructors.c b/libs/cells/constructors.c index d5939d5..2cd85c5 100644 --- a/libs/cells/constructors.c +++ b/libs/cells/constructors.c @@ -1,2 +1,2 @@ -void emptyFn(){} +void emptyFn() {} diff --git a/libs/cells/constructors.h b/libs/cells/constructors.h index 2a9ee3a..8afd726 100644 --- a/libs/cells/constructors.h +++ b/libs/cells/constructors.h @@ -1,6 +1,4 @@ #ifndef CONSTRUCTORS_H_INCLUDED #define CONSTRUCTORS_H_INCLUDED - - -#endif // CONSTRUCTORS_H_INCLUDED +#endif // CONSTRUCTORS_H_INCLUDED diff --git a/libs/cells/methods.c b/libs/cells/methods.c index d5939d5..2cd85c5 100644 --- a/libs/cells/methods.c +++ b/libs/cells/methods.c @@ -1,2 +1,2 @@ -void emptyFn(){} +void emptyFn() {} diff --git a/libs/cells/methods.h b/libs/cells/methods.h index 1ec2dba..b57b27e 100644 --- a/libs/cells/methods.h +++ b/libs/cells/methods.h @@ -1,6 +1,4 @@ #ifndef METHODS_H_INCLUDED #define METHODS_H_INCLUDED - - -#endif // METHODS_H_INCLUDED +#endif // METHODS_H_INCLUDED diff --git a/libs/macros.h b/libs/macros.h index 5507fa9..eb1dd4f 100644 --- a/libs/macros.h +++ b/libs/macros.h @@ -1,6 +1,4 @@ #ifndef MACROS_H_INCLUDED #define MACROS_H_INCLUDED - - -#endif // MACROS_H_INCLUDED +#endif // MACROS_H_INCLUDED diff --git a/libs/main.h b/libs/main.h index 5d01e0e..292e27f 100644 --- a/libs/main.h +++ b/libs/main.h @@ -9,4 +9,4 @@ #include "cells/constructors.h" #include "cells/methods.h" -#endif // MAIN_H_INCLUDED +#endif // MAIN_H_INCLUDED diff --git a/libs/utilities.c b/libs/utilities.c index b923336..5c93fc1 100644 --- a/libs/utilities.c +++ b/libs/utilities.c @@ -3,7 +3,7 @@ int getStrLength(char* str) { int length = 0; while (*str != '\0') - + { length++; str++; diff --git a/libs/utilities.h b/libs/utilities.h index 75edc71..ccbdd94 100644 --- a/libs/utilities.h +++ b/libs/utilities.h @@ -4,14 +4,17 @@ /** * @brief Calculates the length of a string. * - * This function takes a null-terminated string as input and returns the number of characters in the string, excluding the null character. + * This function takes a null-terminated string as input and returns the number + * of characters in the string, excluding the null character. * - * @param str The null-terminated string for which the length needs to be calculated. + * @param str The null-terminated string for which the length needs to be + * calculated. * * @return The length of the string. * - * @warning The input string must be null-terminated, otherwise the behavior is undefined. + * @warning The input string must be null-terminated, otherwise the behavior is + * undefined. */ int getStrLength(char* str); -#endif // UTILITIES_H_INCLUDED +#endif // UTILITIES_H_INCLUDED