1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2012 Index Data
3 * See the file LICENSE for details.
8 * \brief Diagnostic table lookup
15 #include "diag-entry.h"
17 const char *yaz_diag_to_str(struct yaz_diag_entry *tab, int code)
20 for (i=0; tab[i].msg; i++)
21 if (tab[i].code == code)
23 return "Unknown error";
28 * c-file-style: "Stroustrup"
29 * indent-tabs-mode: nil
31 * vim: shiftwidth=4 tabstop=8 expandtab