From 61d4c68263ee989930421ffb631a1174c6638441 Mon Sep 17 00:00:00 2001 From: Joshua Liu Date: Sun, 22 Jun 2025 21:43:37 -0400 Subject: created the function declarations for die, set_data, parsestreamdeckdata and writestreamdeckdata, and implemented set_data and die --- util.c | 18 ++++++++++++++++++ 1 file changed, 18 insertions(+) (limited to 'util.c') diff --git a/util.c b/util.c index e69de29..84733b1 100644 --- a/util.c +++ b/util.c @@ -0,0 +1,18 @@ +#include "util.h" + +int +die(const char* msg) +{ + fprintf_s(stderr, "%s\n", msg); + exit(-1); +} + +int +set_data(unsigned char* data) +{ + if (memset(data, 0x00, 17)) + { + return -1; + } + return 0; +} -- cgit v1.2.3