chore: add MIT license headers and author attribution to all source files

This commit is contained in:
2025-03-16 04:49:29 +00:00
parent 5618666314
commit 4822b48406
40 changed files with 742 additions and 367 deletions
+10 -1
View File
@@ -1,12 +1,21 @@
// Written by retoor@molodetz.nl
// This code generates random keys and stores them in a key-value store, then asserts that the retrieved value matches the expected value
// "tast".
// Includes: rkeytable.h, rtest.h, rstring.h
// MIT License
#include "rkeytable.h"
#include "rtest.h"
#include "rstring.h"
int main() {
for (int i = 0; i < 1000; i++) {
char *key = rgenerate_key();
rkset(key, "tast");
rasserts(!strcmp(rkget(key), "tast"));
}
return 0;
}