
/*
 *	Function	FreeProgArgs
 *	Programmer	N.d'Alterio
 *	Date		11/09/95
 *
 *  Synopsis:	Frees memory allocated to SWArgs structure by 
 *		ProgArgsCLI or ProgArgsWB.
 *
 *  Arguments:	swa			Pointer to arguments structure
 *
 *  Returns:				None.
 *
 *  Variables:				None.
 * 
 *  Functions:	FreeMem			Frees memory (DOS)
 *		strlen			Length of a string (ANSI)
 *
 *  $Log: FreeProgArgs.c $
 * Revision 1.4  1995/09/23  19:19:22  daltern
 * added some error checking, so it will never cause probs
 * if called twice
 *
 * Revision 1.3  1995/09/15  18:53:32  daltern
 * fixed a couple of typos
 *
 * Revision 1.2  1995/09/15  17:37:32  daltern
 * Moved to DOS mem routines, commented, tidy up
 *
 *
 */

#include "SpoolWatch.h"

void FreeProgArgs( struct SWArgs *swa )

{

  if ( swa ) {

	FreeMem( swa->mail_spooldir, (ULONG)( strlen( swa->mail_spooldir ) * sizeof( char ) ) );
  	FreeMem( swa->news_spooldir, (ULONG)( strlen( swa->news_spooldir ) * sizeof( char ) ) );

  	FreeMem( swa, sizeof( struct SWArgs ) );

  }   /* end if swa */

  return;

}   /* end function FreeProgArgs */

/*========================================================================*
                      END FUNCTION FreeProgArgs
 *========================================================================*/
