Files
harbour-core/harbour/contrib/hbnf/rmdir.c
Viktor Szakats cc84cb85b6 2012-04-01 21:10 UTC+0200 Viktor Szakats (harbour syenar.net)
* src/common/hbverdsp.c
    * do not show '(WINANSI)' in the list of version flags.

  * utils/hbmk2/hbmk2.prg
    + add -inc to xbuild and xmate converted projects, this being 
      the default mode of operation (AFAI guess) of these tools.

  * contrib/hbct/disk.c
  * contrib/hbnf/kspeed.c
  * contrib/hbnf/peek.c
  * contrib/hbnf/proper.c
  * contrib/hbnf/ftidle.c
  * contrib/hbnf/mouse.c
  * contrib/hbnf/stod.c
  * contrib/hbnf/getvid.c
  * contrib/hbnf/getver.c
  * contrib/hbnf/getenvrn.c
  * contrib/hbnf/mkdir.c
  * contrib/hbnf/rmdir.c
    ! formatting
2012-04-01 19:11:20 +00:00

58 lines
1.1 KiB
C

/*
* $Id$
*/
/*
* File......: rmdir.asm
* Author....: Ted Means
* CIS ID....: 73067,3332
*
* This function is an original work by Ted Means and is placed in the
* public domain.
*
* Modification history:
* ---------------------
*
* Rev 1.2 15 Aug 1991 23:07:12 GLENN
* Forest Belt proofread/edited/cleaned up doc
*
* Rev 1.1 14 Jun 1991 19:54:58 GLENN
* Minor edit to file header
*
* Rev 1.0 01 Apr 1991 01:03:52 GLENN
* Nanforum Toolkit
*
*/
/*This is the Original FT_RMDIR() code
IDEAL
Public FT_RMDIR
Extrn __ftdir:Far
Segment _NanFor Word Public "CODE"
Assume CS:_NanFor
Proc FT_RMDIR Far
Mov AH,3Ah * DOS service--remove directory
Push AX * Save on stack
Call __ftdir * Call generic directory routine
Add SP,2 * Realign stack
Ret
Endp FT_RMDIR
Ends _NanFor
End
*/
/* This is the New one Rewriten in C*/
#include "hbapi.h"
#include "hbapifs.h"
HB_FUNC( FT_RMDIR )
{
hb_retl( HB_ISCHAR( 1 ) && hb_fsRmDir( hb_parc( 1 ) ) );
}