Lines Matching defs:tmp
38 unsigned char *tmp;
47 tmp = malloc(bytes);
48 if (tmp == NULL)
50 memcpy(tmp, buf, bytes);
53 tmp[bytes - 1] &= 0xff << (8 - lbit);
55 tmp[bytes - 1] |= buf[0] >> i;
74 buf[i] = (tmp[b1] << s1) | (tmp[b2] >> s2);
76 free(tmp);
107 unsigned char *tmp = malloc(maxlen);
110 if (tmp == NULL || buf == NULL) {
118 memcpy(tmp + l, buf, len);
124 add1(key, tmp, size);
128 memmove(tmp, tmp + size, l);
136 if (tmp) {
137 memset(tmp, 0, maxlen);
138 free(tmp);