diff options
Diffstat (limited to 'src/teliva.c')
-rw-r--r-- | src/teliva.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/src/teliva.c b/src/teliva.c index 9ae7328..b604524 100644 --- a/src/teliva.c +++ b/src/teliva.c @@ -16,6 +16,10 @@ #include "teliva.h" #include "tlv.h" +int starts_with(const char* s, const char* prefix) { + return strncmp(s, prefix, strlen(prefix)) == 0; +} + /*** Standard UI elements */ int menu_column = 0; @@ -361,10 +365,6 @@ static void clear_caller(lua_State* L) { assert(lua_gettop(L) == oldtop); } -static int starts_with(const char* s, const char* pre) { - return strncmp(pre, s, strlen(pre)) == 0; -} - /* return true if submitted */ static int edit_current_definition(lua_State* L); static void recent_changes_view(lua_State* L); |