Started adding some documentation

This commit is contained in:
2024-02-19 19:44:36 +01:00
parent 24cbc9725f
commit 4c22e13ad9
4 changed files with 118 additions and 5 deletions

View File

@@ -12,7 +12,7 @@
#include <fcntl.h>
#include <openssl/evp.h>
char ERROR_BUFFER[ERROR_BUFFER_SIZE];
char _ERROR_BUFFER[ERROR_BUFFER_SIZE];
result_t success(void) {
return EXIT_SUCCESS;
@@ -23,7 +23,7 @@ result_t failure(const char* format, ...) {
va_start(args, format);
// Print the error message into the error buffer
vsnprintf(ERROR_BUFFER, ERROR_BUFFER_SIZE, format, args);
vsnprintf(_ERROR_BUFFER, ERROR_BUFFER_SIZE, format, args);
va_end(args);
@@ -31,7 +31,7 @@ result_t failure(const char* format, ...) {
}
const char* error(void) {
return ERROR_BUFFER;
return _ERROR_BUFFER;
}
result_t format(char** _str, const char* format, ...) {