5 * Revision 1.3 1997/09/02 14:26:40 mclareni
8 * Revision 1.2 1997/02/04 17:34:50 mclareni
9 * Merge Winnt and 97a versions
11 * Revision 1.1.1.1.2.1 1997/01/21 11:29:47 mclareni
12 * All mods for Winnt 96a on winnt branch
14 * Revision 1.1.1.1 1996/02/15 17:49:28 mclareni
18 #include "kerngen/pilot.h"
19 #include "kerngen/fortranc.h"
22 CERN PROGLIB# Z265 UNLINI .VERSION KERNFOR 4.31 911111
24 Fortran interface routine to unlink
26 ISTAT = UNLINKF (NAME)
28 NAME the name of the file to be deleted
29 ISTAT returns zero if successful
32 #include "kerngen/fortchar.h"
33 #if defined(CERNLIB_QX_SC)
34 int type_of_call unlini_(fname,lgname)
36 #if defined(CERNLIB_QXNO_SC)
37 int type_of_call unlini(fname,lgname)
39 #if defined(CERNLIB_QXCAPT)
40 # ifndef CERNLIB_MSSTDCALL
41 int type_of_call UNLINI(fname,lgname)
43 int type_of_call UNLINI(fname,lfname,lgname)
47 #if defined(CERNLIB_QMCRY)
50 #if !defined(CERNLIB_QMCRY)
55 char *ptname, *fchtak();
58 /* get memory and copy NAME terminated */
60 ptname = fchtak(fname,*lgname);
61 if (ptname == NULL) goto bad;
63 istat = unlink (ptname);
69 /*> END <----------------------------------------------------------*/
70 #ifdef CERNLIB_TCGEN_UNLINKF
71 #undef CERNLIB_TCGEN_UNLINKF