home *** CD-ROM | disk | FTP | other *** search
- /* FUNIQUE.C
-
- Purpose: Returns a unique file name.
-
- Calling: cFileName:= FUnique([cPathSpec[,nFileAttribute]])
-
- Returns: Unique file name plus prepended pathspec.
-
- Errors: Check FERR() for DOS Error.
-
- Copyright (c) 1990; The DSW Group, Ltd. All Rights Reserved.
-
- */
-
- #include "h:\clipper\nandef.h"
- #include "h:\clipper\extend.h"
-
- char tfile[65]= "";
- /*...........................................................*/
- CLIPPER funique() /* FUnique(cPath,nAttr) -> cUniqueFileName */
- {
- int handle,mode,pcnt;
- char *tpath;
-
- mode= ((pcnt= PCOUNT)>=2) ? _parni(2) : 0;
- tpath= (pcnt>=1) ? _parc(1) : tfile;
-
- _tclose(_tctemp(tpath,mode,tfile));
- _retc(tfile);
- }
- /*...........................................................*/
- /* EOF: FUNIQUE.C */
-
-
-
-
-
-
-
-
-
-
-
-