-/* $Id: tstcodec.c,v 1.9 2006-05-10 08:13:36 adam Exp $
- Copyright (C) 1995-2005
- Index Data ApS
-
-This file is part of the Zebra server.
+/* This file is part of the Zebra server.
+ Copyright (C) 2004-2013 Index Data
Zebra is free software; you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free
for more details.
You should have received a copy of the GNU General Public License
-along with Zebra; see the file LICENSE.zebra. If not, write to the
-Free Software Foundation, 59 Temple Place - Suite 330, Boston, MA
-02111-1307, USA.
+along with this program; if not, write to the Free Software
+Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
+
*/
+#if HAVE_CONFIG_H
+#include <config.h>
+#endif
#include <stdlib.h>
#include "../../index/index.h"
char *dst = (char *) &key;
const char *src0 = src;
iscz1_decode(codec_handle, &dst, &src);
-
+
if (key.len != 2)
{
printf ("%s: i=%d key.len=%d expected 2\n", prog,
return 0;
}
-void tstcodec1()
+void tstcodec1(void)
{
char buf[100];
char *dst = buf;
dst = (char*) &key2;
src = buf;
-
+
iscz1_decode(codec_handle, &dst, &src);
iscz1_stop(codec_handle);
const char *src = (const char *) &ar1;
char *dst = dstbuf;
iscz1_encode(encode_handle, &dst, &src);
-
+
src = dstbuf;
dst = (char *) &ar2;
iscz1_decode(decode_handle, &dst, &src);
ret = tst_encode(num);
exit(ret);
}
-
+
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab