diff options
author | Joshua Liu <joshua.liu@sourceobby.com> | 2025-06-22 21:43:37 -0400 |
---|---|---|
committer | Joshua Liu <joshua.liu@sourceobby.com> | 2025-06-22 21:43:37 -0400 |
commit | 61d4c68263ee989930421ffb631a1174c6638441 (patch) | |
tree | b451dc437c81c0cd17eaa61c66d4f257159e1a83 /util.c | |
parent | 323609e742d0cdc39842907530f98048a62419eb (diff) |
created the function declarations for die, set_data, parsestreamdeckdata and writestreamdeckdata, and implemented set_data and die
Diffstat (limited to 'util.c')
-rw-r--r-- | util.c | 18 |
1 files changed, 18 insertions, 0 deletions
@@ -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; +} |