freebsd-nq/gnu/libexec/uucp/libunix/failed.c
1995-08-19 21:30:30 +00:00

27 lines
426 B
C

/* failed.c
Save a file in the .Failed directory. */
#include "uucp.h"
#include "sysdep.h"
#include "uudefs.h"
#include "system.h"
char *
zsysdep_save_failed_file (zfile)
const char *zfile;
{
char *zto;
zto = zsappend3 (zSspooldir, FAILEDDIR, zfile);
if (! fsysdep_move_file (zfile, zto, TRUE, FALSE, FALSE,
(const char *) NULL))
{
ubuffree (zto);
return NULL;
}
return zto;
}