DataMuseum.dk

Presents historical artifacts from the history of:

DKUUG/EUUG Conference tapes

This is an automatic "excavation" of a thematic subset of
artifacts from Datamuseum.dk's BitArchive.

See our Wiki for more about DKUUG/EUUG Conference tapes

Excavated with: AutoArchaeologist - Free & Open Source Software.


top - metrics - download
Index: T p

⟦e616d319f⟧ TextFile

    Length: 1229 (0x4cd)
    Types: TextFile
    Names: »psap.c«

Derivation

└─⟦3d0c2be1b⟧ Bits:30001254 ISODE-5.0 Tape
    └─⟦eba4602b1⟧ »./isode-5.0.tar.Z« 
        └─⟦d3ac74d73⟧ 
            └─⟦this⟧ »isode-5.0/dsap/common/psap.c« 

TextFile

/* psap.c - General PSAP utility routines */

#ifndef lint
static char *rcsid = "$Header: /f/osi/dsap/common/RCS/psap.c,v 6.0 89/03/18 23:27:45 mrose Rel $";
#endif

/*
 * $Header: /f/osi/dsap/common/RCS/psap.c,v 6.0 89/03/18 23:27:45 mrose Rel $
 *
 *
 * $Log:	psap.c,v $
 * Revision 6.0  89/03/18  23:27:45  mrose
 * Release 5.0
 * 
 */

/*
 *                                NOTICE
 *
 *    Acquisition, use, and distribution of this module and related
 *    materials are subject to the restrictions of a license agreement.
 *    Consult the Preface in the User's Manual for the full terms of
 *    this agreement.
 *
 */


/* LINTLIBRARY */

#include "quipu/util.h"
#include "quipu/attr.h"
#include "psap.h"
#include "isoaddrs.h"

psap_free (psap)
struct PSAPaddr * psap;
{
	free ((char *)psap) ;
}

struct PSAPaddr * psap_cpy (a)
struct PSAPaddr * a;
{
struct PSAPaddr * r;

	r = (struct PSAPaddr *) smalloc (sizeof (struct PSAPaddr));
	bzero ((char *) r,sizeof (struct PSAPaddr));

	*r = *a;        /* struct copy */

	return (r);
}

psap_dup (r,a)
struct PSAPaddr * r, * a;
{
    *r = *a;    /* struct copy */
}

psap_cmp (r,a)
struct PSAPaddr *r, *a;
{
    return (bcmp ((char *) r, (char *) a, sizeof *a) ? (-1) : 0);
}