Expanded tabs in all source files. Added vim/emacs local variables
[yaz-moved-to-github.git] / src / diag-entry.c
1 /*
2  * Copyright (C) 1995-2005, Index Data ApS
3  * See the file LICENSE for details.
4  *
5  * $Id: diag-entry.c,v 1.2 2005-06-25 15:46:04 adam Exp $
6  */
7
8 #include "diag-entry.h"
9
10 const char *yaz_diag_to_str(struct yaz_diag_entry *tab, int code)
11 {
12     int i;
13     for (i=0; tab[i].msg; i++)
14         if (tab[i].code == code)
15             return tab[i].msg;
16     return "Unknown error";
17 }
18 /*
19  * Local variables:
20  * c-basic-offset: 4
21  * indent-tabs-mode: nil
22  * End:
23  * vim: shiftwidth=4 tabstop=8 expandtab
24  */
25