Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
…rk-2024 into Master
  • Loading branch information
hozlucas28 committed Sep 6, 2024
2 parents d37f841 + 0a317dd commit 8e2b5df
Show file tree
Hide file tree
Showing 8 changed files with 14 additions and 17 deletions.
2 changes: 1 addition & 1 deletion libs/cells/constructors.c
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

void emptyFn(){}
void emptyFn() {}
4 changes: 1 addition & 3 deletions libs/cells/constructors.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#ifndef CONSTRUCTORS_H_INCLUDED
#define CONSTRUCTORS_H_INCLUDED



#endif // CONSTRUCTORS_H_INCLUDED
#endif // CONSTRUCTORS_H_INCLUDED
2 changes: 1 addition & 1 deletion libs/cells/methods.c
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@

void emptyFn(){}
void emptyFn() {}
4 changes: 1 addition & 3 deletions libs/cells/methods.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#ifndef METHODS_H_INCLUDED
#define METHODS_H_INCLUDED



#endif // METHODS_H_INCLUDED
#endif // METHODS_H_INCLUDED
4 changes: 1 addition & 3 deletions libs/macros.h
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
#ifndef MACROS_H_INCLUDED
#define MACROS_H_INCLUDED



#endif // MACROS_H_INCLUDED
#endif // MACROS_H_INCLUDED
2 changes: 1 addition & 1 deletion libs/main.h
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,4 @@
#include "cells/constructors.h"
#include "cells/methods.h"

#endif // MAIN_H_INCLUDED
#endif // MAIN_H_INCLUDED
2 changes: 1 addition & 1 deletion libs/utilities.c
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ int getStrLength(char* str) {
int length = 0;

while (*str != '\0')

{
length++;
str++;
Expand Down
11 changes: 7 additions & 4 deletions libs/utilities.h
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 8e2b5df

Please sign in to comment.