// Test harness for block argument mechanism (see coblocks.S) #include int hashsz(char *s); int hashiz(char *s); int hashlc(char *s); int main() { char *words[] = { "", "", "a", "A", "jello", "hello", "Hello", "hell1", "hell2" }; for (size_t i = 0; i < sizeof(words)/sizeof(words[0]); i++) { printf("hashsz(\"%s\") = 0x%08x\n", words[i], hashsz(words[i])); printf("hashiz(\"%s\") = 0x%08x\n", words[i], hashiz(words[i])); printf("hashlc(\"%s\") = 0x%08x\n", words[i], hashlc(words[i])); } return 0; }