1 /* This file is part of the YAZ toolkit.
2 * Copyright (C) 1995-2009 Index Data
3 * See the file LICENSE for details.
7 * \brief Implements WAIS package handling
11 #include <yaz/comstack.h>
13 * Return length of WAIS package or 0
15 int completeWAIS(const char *buf, int len)
23 /* calculate length */
24 for (i = 0; i < 10; i++)
25 lval = lval * 10 + (buf[i] - '0');
34 * c-file-style: "Stroustrup"
35 * indent-tabs-mode: nil
37 * vim: shiftwidth=4 tabstop=8 expandtab