X-Git-Url: http://git.indexdata.com/?a=blobdiff_plain;f=src%2Fwaislen.c;fp=src%2Fwaislen.c;h=0000000000000000000000000000000000000000;hb=e14b57aabd2bcdd5996d17778bf9055935d7b252;hp=7f7daf7a114ac391f76d6032a0eb8db8721dea3d;hpb=2b8637b1b34cbbd57cee3cd1b493f5a8231e9afd;p=yaz-moved-to-github.git diff --git a/src/waislen.c b/src/waislen.c deleted file mode 100644 index 7f7daf7..0000000 --- a/src/waislen.c +++ /dev/null @@ -1,42 +0,0 @@ -/* This file is part of the YAZ toolkit. - * Copyright (C) 1995-2013 Index Data - * See the file LICENSE for details. - */ -/** - * \file waislen.c - * \brief Implements WAIS package handling - */ -#if HAVE_CONFIG_H -#include -#endif - -#include -#include -/* - * Return length of WAIS package or 0 - */ -int completeWAIS(const char *buf, int len) -{ - int i, lval = 0; - - if (len < 25) - return 0; - if (*buf != '0') - return 0; - /* calculate length */ - for (i = 0; i < 10; i++) - lval = lval * 10 + (buf[i] - '0'); - lval += 25; - if (len >= lval) - return lval; - return 0; -} -/* - * Local variables: - * c-basic-offset: 4 - * c-file-style: "Stroustrup" - * indent-tabs-mode: nil - * End: - * vim: shiftwidth=4 tabstop=8 expandtab - */ -