/* There are several options how the result buffer is handled: */
static int cmpkey(const void *p1, const void *p2)
/* There are several options how the result buffer is handled: */
static int cmpkey(const void *p1, const void *p2)
{
	struct env_entry *e1 = *(struct env_entry **)p1;
	struct env_entry *e2 = *(struct env_entry **)p2;
	return (strcmp(e1->key, e2->key));
}