add hashtest/hashgen for MCU string commands

This commit is contained in:
2022-12-08 17:44:07 +03:00
parent 65c17d0ff1
commit 8331a4d348
6 changed files with 336 additions and 0 deletions

18
stringHash4MCU_/test.c Normal file
View File

@@ -0,0 +1,18 @@
#include <stdio.h>
#include <string.h>
#include <stdint.h>
#include "hash.h"
/*
static int f(uint32_t h, const char *args){
printf("%u -> '%s'\n", h, args);
return 1;
}*/
int main(int argc, char **argv){
if(argc != 2) return 1;
if(!parsecmd(argv[1])) printf("%s not found\n", argv[1]);
else printf("All OK\n");
return 0;
}