refactor: move static function on top of files

This commit is contained in:
2025-11-14 11:52:47 +01:00
parent d094a6c895
commit 2692bb0f9b
5 changed files with 116 additions and 116 deletions
+2 -2
View File
@@ -6,6 +6,8 @@
#include "config.h"
#include "string.h"
static bool is_digit(char c) { return c >= '0' && c <= '9'; }
unsigned int string_trim(char *str) {
// https://www.delftstack.com/howto/c/trim-string-in-c/
unsigned int start;
@@ -37,8 +39,6 @@ unsigned int string_trim(char *str) {
return end - start + 1;
}
static bool is_digit(char c) { return c >= '0' && c <= '9'; }
bool string_is_number(const char *value) {
unsigned long value_len;