Began updating server data definitions.

This commit is contained in:
2026-02-21 09:20:36 -05:00
parent 2b13e159e9
commit f9f03528d8
5 changed files with 117 additions and 0 deletions

13
server/src/data.c Normal file
View File

@@ -0,0 +1,13 @@
#include "include/data.h"
int name_verify(const char* name) {
if (!name) return 0;
if (strlen(name) > NAME_MAX_LENGTH) return 0;
return 1;
}
int msg_verify(const char* content) {
if (!content) return 0;
if (strlen(content) > MSG_MAX_LENGTH) return 0;
return 1;
}