summaryrefslogtreecommitdiffstats
path: root/src/common.h
diff options
context:
space:
mode:
Diffstat (limited to 'src/common.h')
-rw-r--r--src/common.h32
1 files changed, 32 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h
new file mode 100644
index 0000000..7e5aff7
--- /dev/null
+++ b/src/common.h
@@ -0,0 +1,32 @@
1/*
2 * common.h
3 * contains some common functions
4 *
5 * Copyright (c) 2026 Nikias Bassen, All Rights Reserved.
6 *
7 * This library is free software; you can redistribute it and/or
8 * modify it under the terms of the GNU Lesser General Public
9 * License as published by the Free Software Foundation; either
10 * version 2.1 of the License, or (at your option) any later version.
11 *
12 * This library is distributed in the hope that it will be useful,
13 * but WITHOUT ANY WARRANTY; without even the implied warranty of
14 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15 * Lesser General Public License for more details.
16 *
17 * You should have received a copy of the GNU Lesser General Public
18 * License along with this library; if not, write to the Free Software
19 * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20 */
21#ifndef COMMON_H
22#define COMMON_H
23
24#include <stddef.h>
25
26#define MAC_EPOCH 978307200
27
28size_t dtostr(char *buf, size_t bufsize, double realval);
29int num_digits_i(int64_t i);
30int num_digits_u(uint64_t i);
31
32#endif