1 2 3 4 5 6 7 8
#include "login-shared.h" #include "def.h" bool session_id_valid(const char *id) { assert(id); return id + strspn(id, LETTERS DIGITS) == '\0'; }