8 char * copystr(const char *buf) {
14 char *ptr=(char*)malloc(i+1);
20 char * escapestr(const char *buf) {
26 char *ptr=(char*)malloc(i+1);
37 unsigned int hashstring(char *strptr) {
38 unsigned int hashcode=0;
39 int *intptr=(int *) strptr;
44 if((copy1&0xFF000000)&&
51 if (!copy1&0xFF000000)
52 hashcode^=copy1&0xFF000000;
53 else if (!copy1&0xFF0000)
54 hashcode^=copy1&0xFF0000;
55 else if (!copy1&0xFF00)
56 hashcode^=copy1&0xFF00;
64 int equivalentstrings(char *str1, char *str2) {
65 if ((str1!=NULL)&&(str2!=NULL)) {
66 if (strcmp(str1,str2)!=0)
70 } else if ((str1==NULL)&&(str2==NULL))