fpc/rtl/inc/cpne.pp
1998-03-25 11:18:12 +00:00

61 lines
1.5 KiB
ObjectPascal

{
$Id$
This file is part of the Free Pascal run time library.
Copyright (c) 1993,97 by Pierre Muller,
member of the Free Pascal development team.
See the file COPYING.FPC, included in this distribution,
for details about the copyright.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
**********************************************************************}
program copy_if_not_empty;
uses dos;
var in,out : file;
begin
if paramcount>0 then
begin
assign(in,paramstr(1));
if filerec(in).size=0 then
begin
erase(in);
exit;
end;
end;
if paramcount>1 then
rename(paramstr(1),paramstr(2));
end.
{
$Log$
Revision 1.1 1998-03-25 11:18:43 root
Initial revision
Revision 1.3 1998/01/26 11:59:29 michael
+ Added log at the end
Working file: rtl/inc/cpne.pp
description:
----------------------------
revision 1.2
date: 1997/12/01 15:33:31; author: michael; state: Exp; lines: +14 -0
+ added copyright reference in header.
----------------------------
revision 1.1
date: 1997/11/27 08:33:46; author: michael; state: Exp;
Initial revision
----------------------------
revision 1.1.1.1
date: 1997/11/27 08:33:46; author: michael; state: Exp; lines: +0 -0
FPC RTL CVS start
=============================================================================
}