2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: diag-entry.c,v 1.1 2005-04-22 08:27:58 adam Exp $
8 #include "diag-entry.h"
10 const char *yaz_diag_to_str(struct yaz_diag_entry *tab, int code)
13 for (i=0; tab[i].msg; i++)
14 if (tab[i].code == code)
16 return "Unknown error";