-/*
- $Id: inline.c,v 1.1 2006-07-03 14:27:09 adam Exp $
+/* This file is part of the Zebra server.
+ Copyright (C) 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
+Software Foundation; either version 2, or (at your option) any later
+version.
+
+Zebra is distributed in the hope that it will be useful, but WITHOUT ANY
+WARRANTY; without even the implied warranty of MERCHANTABILITY or
+FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
+for more details.
+
+You should have received a copy of the GNU General Public License
+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 <stdio.h>
#include <string.h>
#include <ctype.h>
static inline_subfield *inline_mk_subfield(inline_subfield *parent)
{
inline_subfield *p = (inline_subfield *)xmalloc(sizeof(*p));
-
+
if (p)
{
memset(p, 0, sizeof(*p));
{
inline_field *pf = pif;
char *p = (char *)s;
-
+
if (!pf)
return -1;
-
+
if (pf->name[0] == '\0')
{
if ((sscanf(p, "%3s", pf->name)) != 1)
else
{
inline_subfield *psf = inline_mk_subfield(0);
-
+
sscanf(tag, "%1s", psf->name);
psf->data = xstrdup(p);
-
+
if (!pf->list)
{
pf->list = psf;
/*
* Local variables:
* c-basic-offset: 4
+ * c-file-style: "Stroustrup"
* indent-tabs-mode: nil
* End:
* vim: shiftwidth=4 tabstop=8 expandtab