2 * Copyright (C) 1995-2007, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: diag-entry.c,v 1.4 2007-01-03 08:42:15 adam Exp $
10 * \brief Diagnostic table lookup
17 #include "diag-entry.h"
19 const char *yaz_diag_to_str(struct yaz_diag_entry *tab, int code)
22 for (i=0; tab[i].msg; i++)
23 if (tab[i].code == code)
25 return "Unknown error";
30 * indent-tabs-mode: nil
32 * vim: shiftwidth=4 tabstop=8 expandtab