53 lines
1.6 KiB
C
53 lines
1.6 KiB
C
/*
|
|
* |-----------------------------------------------------------|
|
|
* | Copyright (c) 1991, 1990 MIPS Computer Systems, Inc. |
|
|
* | All Rights Reserved |
|
|
* |-----------------------------------------------------------|
|
|
* | Restricted Rights Legend |
|
|
* | Use, duplication, or disclosure by the Government is |
|
|
* | subject to restrictions as set forth in |
|
|
* | subparagraph (c)(1)(ii) of the Rights in Technical |
|
|
* | Data and Computer Software Clause of DFARS 252.227-7013. |
|
|
* | MIPS Computer Systems, Inc. |
|
|
* | 950 DeGuigne Avenue |
|
|
* | Sunnyvale, California 94088-3650, USA |
|
|
* |-----------------------------------------------------------|
|
|
*/
|
|
#ident "$Header: /proj/irix6.5.7m/isms/eoe/cmd/lp_svr4/lib/systems/RCS/freesystem.c,v 1.1 1992/12/14 13:34:26 suresh Exp $"
|
|
/* Copyright (c) 1984, 1986, 1987, 1988, 1989 AT&T */
|
|
/* All Rights Reserved */
|
|
|
|
/* THIS IS UNPUBLISHED PROPRIETARY SOURCE CODE OF AT&T */
|
|
/* The copyright notice above does not evidence any */
|
|
/* actual or intended publication of such source code. */
|
|
|
|
/* LINTLIBRARY */
|
|
|
|
# include "lp.h"
|
|
# include "systems.h"
|
|
|
|
/**
|
|
** freesystem() - FREE MEMORY ALLOCATED FOR SYSTEM STRUCTURE
|
|
**/
|
|
|
|
|
|
#if defined(__STDC__)
|
|
void freesystem ( SYSTEM * sp )
|
|
#else
|
|
void freesystem ( sp )
|
|
SYSTEM *sp;
|
|
#endif
|
|
{
|
|
if (!sp)
|
|
return;
|
|
|
|
if (sp->name)
|
|
Free(sp->name);
|
|
|
|
if (sp->passwd)
|
|
Free(sp->passwd);
|
|
|
|
if (sp->comment)
|
|
Free(sp->comment);
|
|
}
|