Format the C code in Clang-Format Style: Microsoft

This commit is contained in:
krahets
2023-04-17 21:13:15 +08:00
parent 1d6b7a5644
commit 9a98ff8a5e
46 changed files with 215 additions and 216 deletions

View File

@ -8,8 +8,8 @@
#define PRINT_UTIL_H
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include <string.h>
#include "list_node.h"
#include "tree_node.h"
@ -18,7 +18,6 @@
extern "C" {
#endif
/**
* @brief Print an Array
*
@ -69,9 +68,9 @@ struct Trunk {
typedef struct Trunk Trunk;
Trunk *newTrunk(Trunk *prev, char *str) {
Trunk *trunk = (Trunk *) malloc(sizeof(Trunk));
Trunk *trunk = (Trunk *)malloc(sizeof(Trunk));
trunk->prev = prev;
trunk->str = (char *) malloc(sizeof(char) * 10);
trunk->str = (char *)malloc(sizeof(char) * 10);
strcpy(trunk->str, str);
return trunk;
}
@ -146,7 +145,6 @@ static void printHeap(int arr[], int size) {
printTree(root);
}
#ifdef __cplusplus
}
#endif