diff options
author | Trumeet <yuuta@yuuta.moe> | 2022-07-22 19:47:04 -0700 |
---|---|---|
committer | Trumeet <yuuta@yuuta.moe> | 2022-07-22 19:47:04 -0700 |
commit | f5327ba5cac39df2072b5a3fed0f84acb6408138 (patch) | |
tree | 3e2fe6a7184e958be67f6d15cba8d8dcc218ea77 /client/libacron/private/helpers.h | |
parent | 3037e4a0187d439acea4d090b04f1a04efdfebfc (diff) | |
download | acron-f5327ba5cac39df2072b5a3fed0f84acb6408138.tar acron-f5327ba5cac39df2072b5a3fed0f84acb6408138.tar.gz acron-f5327ba5cac39df2072b5a3fed0f84acb6408138.tar.bz2 acron-f5327ba5cac39df2072b5a3fed0f84acb6408138.zip |
feat(libacron): complete Win32 error message formatting
The former approach, strerror(3), is not working on Win32 errors (GetLastError()) or WinSock errors (WSAGetLastError()).
Signed-off-by: Trumeet <yuuta@yuuta.moe>
Diffstat (limited to 'client/libacron/private/helpers.h')
-rw-r--r-- | client/libacron/private/helpers.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/client/libacron/private/helpers.h b/client/libacron/private/helpers.h index f1635a6..c6500b8 100644 --- a/client/libacron/private/helpers.h +++ b/client/libacron/private/helpers.h @@ -42,4 +42,9 @@ int strdup2(const char *str, char **out); */ char *strerror2(int errnum); +/** + * Cleanup any necessary memory during exit of the current thread. + */ +void helpers_cleanup(void); + #endif /* LIBAC_HELPERS_H */ |