int len;
size_t len;
int GenKeyData(const char *library, int32 id, DBT *key){	char idstr[10];	static char * strdata = NULL;	int len;	if (strdata)		free (strdata);	if (id == 0)		idstr[0] = '\0';	else	{		sprintf(idstr, "%d", id);		/*	itoa(id, idstr, 10);  */	}	if (library == NULL)		len = strlen(idstr) + 1;	else		len = strlen(library) + strlen(idstr) + 1;	strdata = (char *) malloc (len);	strcpy(strdata, library);	strcat(strdata, idstr);	key->size = len;	key->data = strdata;	return 1;}