2 * Copyright (C) 1995-2005, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: diag-entry.c,v 1.2 2005-06-25 15:46:04 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";
21 * indent-tabs-mode: nil
23 * vim: shiftwidth=4 tabstop=8 expandtab