/**************************************************************************/
/*                                                                        */
/*                                 Sources                                */
/*                                from  the                               */
/*                           XSC SOFTWARE PACKAGE                         */
/*                                                                        */
/*                Copyright (c) 1997 University of Karlsruhe              */
/*                     Institute for Appl. Mathematics                    */
/*                                                                        */
/* This program is free software for non-commercial use. For details, see */
/* the file LICENSE.XSC, distributed with this software package.          */
/*                                                                        */
/* This program is distributed WITHOUT ANY WARRANTY. For details, see the */
/* file LICENSE.XSC, distributed with this software package.              */
/*                                                                        */
/**************************************************************************/

/* RCS $Id: s_ssne.c,v 1.2 1997/09/25 18:03:30 ae59 Exp $ */
/*
$Log: s_ssne.c,v $
 * Revision 1.2  1997/09/25  18:03:30  ae59
 * Copyright-message
 *
 * Revision 1.1  1994/01/27  13:24:51  ae59
 * Put under RCS control
 *
 */
/****************************************************************/
/*                                                              */
/*      Filename        : s_ssne.c                              */
/*                                                              */
/*      Entries         : a_bool s_ssne(s,t)                    */
/*                        s_trng s,t;                           */
/*                                                              */
/*      Arguments       : s = first string                      */
/*                        t = second string                     */
/*                                                              */
/*      Description     : Compare for unequal strings.          */
/*                                                              */
/*      Date            : 1991-02-13                            */
/*      1991-02-13 : memcmp instead of strncmp                  */
/****************************************************************/

#ifndef ALL_IN_ONE
#ifdef AIX
#include "/u/p88c/runtime/o_defs.h"
#else
#include "o_defs.h"
#endif
#define local
#endif

#ifdef LINT_ARGS
local a_bool s_ssne(s_trng s,s_trng t)
#else
local a_bool s_ssne(s,t)

s_trng s;
s_trng t;
#endif
        {
        a_bool res;

        if (s.clen!=t.clen) res = TRUE;
        else if (s.clen==0) res = FALSE;
        else res = (memcmp(s.ptr,t.ptr,s.clen)!=0) ? TRUE : FALSE;

        if (s.tmp) s_free(&s);
        if (t.tmp) s_free(&t);

        return(res);
        }

