From 900254f02354d0943754db9d91b222b872addb19 Mon Sep 17 00:00:00 2001 From: Francesco Date: Tue, 25 Nov 2025 23:31:28 +0100 Subject: [PATCH] style: clang-format --- queue/myqueue.h | 2 +- string/mystring.c | 3 ++- vector/myvector.c | 3 ++- 3 files changed, 5 insertions(+), 3 deletions(-) diff --git a/queue/myqueue.h b/queue/myqueue.h index 42da699..3cb1cb3 100644 --- a/queue/myqueue.h +++ b/queue/myqueue.h @@ -69,4 +69,4 @@ int queue_get_rear(queue_s *queue, void *out); */ void queue_free(queue_s *queue); -#endif // MYCLIB_QUEUE_H +#endif // MYCLIB_QUEUE_H diff --git a/string/mystring.c b/string/mystring.c index 9f95128..cdd0fd3 100644 --- a/string/mystring.c +++ b/string/mystring.c @@ -33,7 +33,8 @@ static void buffer_key_init(void) { /* Returns the next power of two of a number */ static size_t next_power_two(size_t len) { - if (len == 0) return 1; + if (len == 0) + return 1; size_t p = 1; while (p < len) { diff --git a/vector/myvector.c b/vector/myvector.c index 8142f75..93cdb38 100644 --- a/vector/myvector.c +++ b/vector/myvector.c @@ -6,7 +6,8 @@ /* Returns the next power of two of a number */ static size_t next_power_two(size_t len) { - if (len == 0) return 1; + if (len == 0) + return 1; size_t p = 1; while (p < len) {