save
This commit is contained in:
14
src/util.c
Normal file
14
src/util.c
Normal file
@@ -0,0 +1,14 @@
|
||||
#include <string.h>
|
||||
|
||||
#include "util.h"
|
||||
#include "../include/yait.h"
|
||||
|
||||
// clang-format off
|
||||
licence_t TOlicence(const char *s)
|
||||
{
|
||||
if (strcmp(s, "mit")) return MIT;
|
||||
if (strcmp(s, "gpl")) return GPL;
|
||||
if (strcmp(s, "bsd")) return BSD;
|
||||
return UNL;
|
||||
}
|
||||
// clang-format on
|
||||
Reference in New Issue
Block a user