diff options
author | lonkaars <loek@pipeframe.xyz> | 2022-06-07 21:27:16 +0200 |
---|---|---|
committer | lonkaars <loek@pipeframe.xyz> | 2022-06-07 21:27:16 +0200 |
commit | 3e65c70da770fa31fc8acc6ab9374d908cf1ed17 (patch) | |
tree | 14f8d4c708faccc8b3f992a022f940c00ed694f9 /client/ui_errcatch.c | |
parent | 8c8322a7a0c251d595a0df054324f82d41966e0a (diff) |
implement orders
Diffstat (limited to 'client/ui_errcatch.c')
-rw-r--r-- | client/ui_errcatch.c | 8 |
1 files changed, 1 insertions, 7 deletions
diff --git a/client/ui_errcatch.c b/client/ui_errcatch.c index 5c9cf34..c25f787 100644 --- a/client/ui_errcatch.c +++ b/client/ui_errcatch.c @@ -5,16 +5,10 @@ #include "i18n.h" #include "strings.h" #include "ui.h" +#include "../shared/util.h" unsigned int g_w2_errcatch_log_line = 0; -unsigned int w2_newline_count(char *str, unsigned int len) { - unsigned int newlines = 0; - for (unsigned int i = 0; i < len; i++) - if (str[i] == '\n') newlines++; - return newlines; -} - char *w2_err_format(w2_s_error *error) { const char *type = g_w2_error_type_strings[error->code >> 6]; const char *internal = g_w2_error_internal_strings[error->code]; |