lh_test.c (68651) | lh_test.c (100928) |
---|---|
1/* crypto/lhash/lh_test.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 61 unchanged lines hidden (view full) --- 70 conf=lh_new(lh_strhash,strcmp); 71 for (;;) 72 { 73 char *p; 74 75 buf[0]='\0'; 76 fgets(buf,256,stdin); 77 if (buf[0] == '\0') break; | 1/* crypto/lhash/lh_test.c */ 2/* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) 3 * All rights reserved. 4 * 5 * This package is an SSL implementation written 6 * by Eric Young (eay@cryptsoft.com). 7 * The implementation was written so as to conform with Netscapes SSL. 8 * --- 61 unchanged lines hidden (view full) --- 70 conf=lh_new(lh_strhash,strcmp); 71 for (;;) 72 { 73 char *p; 74 75 buf[0]='\0'; 76 fgets(buf,256,stdin); 77 if (buf[0] == '\0') break; |
78 buf[256]='\0'; | |
79 i=strlen(buf); 80 p=OPENSSL_malloc(i+1); 81 memcpy(p,buf,i+1); 82 lh_insert(conf,p); 83 } 84 85 lh_node_stats(conf,stdout); 86 lh_stats(conf,stdout); 87 lh_node_usage_stats(conf,stdout); 88 exit(0); 89 } | 78 i=strlen(buf); 79 p=OPENSSL_malloc(i+1); 80 memcpy(p,buf,i+1); 81 lh_insert(conf,p); 82 } 83 84 lh_node_stats(conf,stdout); 85 lh_stats(conf,stdout); 86 lh_node_usage_stats(conf,stdout); 87 exit(0); 88 } |