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