refactor(methods): change funcs to static

This commit is contained in:
2025-09-17 00:06:12 +02:00
parent c9af1429f9
commit 210aac2a3a
3 changed files with 19 additions and 18 deletions
+3 -1
View File
@@ -5,8 +5,10 @@
tgbot_inlinekeyboard_s *tgbot_inlinekb_new(size_t rows, size_t columns) {
tgbot_inlinekeyboard_s *keyboard = (tgbot_inlinekeyboard_s *)malloc(sizeof(tgbot_inlinekeyboard_s));
if (!keyboard)
if (!keyboard) {
return NULL;
}
keyboard->rows = rows;
keyboard->columns = columns;
keyboard->buttons = (tgbot_inlinekeyboardbutton_s *)malloc(rows * columns * sizeof(tgbot_inlinekeyboardbutton_s));