fixed hashgen

This commit is contained in:
2022-12-15 09:19:41 +03:00
parent 8331a4d348
commit 76517ca91f
3 changed files with 47 additions and 41 deletions

View File

@@ -4,15 +4,20 @@
#include "hash.h"
/*
static int f(uint32_t h, const char *args){
printf("%u -> '%s'\n", h, args);
int fn_hello(uint32_t hash, char *args){
printf("HELLO! Hash=%u, param=%s\n", hash, args);
return 1;
}*/
}
int fn_world(uint32_t hash, char *args){
printf("WORLD: %u - %s\n", hash, 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]);
if(argc < 2) return 1;
char *args = "";
if(argc > 2) args = argv[2];
if(!parsecmd(argv[1], args)) printf("%s not found\n", argv[1]);
else printf("All OK\n");
return 0;
}