1 2extern const struct SLInterfaceID_ SL_IID_array[MPH_MAX]; 3extern const char * const interface_names[MPH_MAX]; 4extern void MPH_to_MPH_string(unsigned MPH, char buffer[40]); 5 6int main(int argc, char **argv) 7{ 8 int i; 9 for (i = 0; i <= MAX_HASH_VALUE; ++i) { 10 const char *x = wordlist[i]; 11 if (!x) { 12 printf(" -1"); 13 } else { 14 const struct SLInterfaceID_ *xx = SL_IID_array; 15 unsigned MPH; 16 for (MPH = 0; MPH < MPH_MAX; ++MPH, ++xx) { 17 if (!memcmp(x, xx, 16)) { 18 char buffer[40]; 19 buffer[39] = 'x'; 20 MPH_to_MPH_string(MPH, buffer); 21 assert('x' == buffer[39]); 22 printf(" %s", buffer); 23 goto out; 24 } 25 } 26 printf(" (-1)"); 27out: 28 ; 29 } 30 if (i < MAX_HASH_VALUE) 31 printf(","); 32 printf("\n"); 33 } 34 return EXIT_SUCCESS; 35} 36