Began updating server data definitions.
This commit is contained in:
13
server/src/data.c
Normal file
13
server/src/data.c
Normal 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;
|
||||
}
|
||||
Reference in New Issue
Block a user