2 * Copyright (C) 1995-2007, Index Data ApS
3 * See the file LICENSE for details.
5 * $Id: waislen.c,v 1.6 2007-10-09 06:00:56 adam Exp $
9 * \brief Implements WAIS package handling
13 #include <yaz/comstack.h>
15 * Return length of WAIS package or 0
17 int completeWAIS(const char *buf, int len)
25 /* calculate length */
26 for (i = 0; i < 10; i++)
27 lval = lval * 10 + (buf[i] - '0');
36 * indent-tabs-mode: nil
38 * vim: shiftwidth=4 tabstop=8 expandtab