Files
harbour-core/contrib/hbnf/tempfile.prg
vszakats 9687850865 2013-03-16 02:10 UTC+0100 Viktor Szakats (harbour syenar.net)
* (all files)
    * stripped svn header
    * minor cleanups
    ; use following command to find out the history of files:
       git log
       git log --follow
       git blame
       git annotate
2013-03-16 02:11:42 +01:00

57 lines
1.5 KiB
Plaintext

/*
* Author....: Glenn Scott
* CIS ID....: 71620,1521
*
* This is an original work by Glenn Scott and is placed in the
* public domain.
*
* Modification history:
* ---------------------
*
* Rev 1.7 28 Sep 1992 23:48:48 GLENN
* Deleted #define for FLAG_CARRY as Toolkit v2.1's ftint86.ch has it.
*
* Rev 1.6 03 Oct 1991 18:36:28 GLENN
* Tim Wong from Nantucket pointed out that this DOS function actually
* leaves a file handle in AX. In order to preserve the functionality,
* I now FClose() that handle if the call is succsessful.
*
* Rev 1.5 15 Aug 1991 23:05:04 GLENN
* Forest Belt proofread/edited/cleaned up doc
*
* Rev 1.4 17 Jul 1991 22:11:18 GLENN
* Stripped off hb_BChar(0)s in the return value (aRegs[DS])
*
* Rev 1.3 03 Jul 1991 01:08:08 GLENN
* Changed one line in FT_TEST driver ( cHide == "Y" )
*
* Rev 1.2 14 Jun 1991 19:53:10 GLENN
* Minor edit to file header
*
* Rev 1.1 12 Jun 1991 02:45:40 GLENN
* Documentation mods, and convert to new ft_int86() syntax, return value.
*
* Rev 1.0 01 Apr 1991 01:02:24 GLENN
* Nanforum Toolkit
*
*/
#include "fileio.ch"
FUNCTION ft_TempFil( cPath, lHide, /* @ */ nHandle )
LOCAL cFile
hb_default( @cPath, "." + hb_ps() )
hb_default( @lHide, .F. )
cPath := AllTrim( cPath )
nHandle := hb_FTempCreate( cPath, NIL, iif( lHide, FC_HIDDEN, FC_NORMAL ), @cFile )
IF PCount() <= 2
FClose( nHandle )
ENDIF
RETURN cFile