2 * Copyright (c) 1995, Index Data.
3 * See the file LICENSE for details.
4 * Sebastian Hammer, Adam Dickmeiss
7 * Revision 1.3 1996-02-29 14:23:13 adam
10 * Revision 1.2 1996/02/26 18:34:44 adam
13 * Revision 1.1 1996/02/20 13:02:58 quinn
21 * Return length of WAIS package or 0
23 int completeWAIS(unsigned char *buf, int len)
31 /* calculate length */
32 for (i = 0; i < 10; i++)
33 lval = lval * 10 + (buf[i] - '0');