Skip site navigation (1)Skip section navigation (2)

FreeBSD Manual Pages

  
 
  

home | help
MBKUNLINK(3)		     MBK UTILITY FUNCTIONS		  MBKUNLINK(3)

NAME
       mbkunlink - delete a file in the	WORK_LIBP.

SYNOPSYS
       #include	"mut.h"
       FILE *mbkunlink(name, extension)
       char *name, *extension;

PARAMETERS
       name		   Name	of the file to be deleted

       extension	   Extension to	the file name

DESCRIPTION
       mbkunlink  deletes  a file, searching it	in the path specified with the
       environment variable MBK_WORK_LIB(1).  Its main issue is	to enable sim-
       ple  file deletion for any program that works with mbk path environment
       variables.
       The file	to be erased is	called name.extension,	if  extension  is  not
       NULL,  else  it is name.	If extension is	the empty string, "", then the
       file name will be name. .

RETURN VALUE
       mbkunlink returns :

       -1		   on failure, ie the file is not in the  MBK_WORK_LIB
			   path.

       0		   on success.

EXAMPLE
       #include	"mut.h"
       #include	"mph.h"
       void update_work_lib(name)
       char *name;
       {
       char *path;
	  if (incatalogdelete(name))
	     if	(mbkunlink(name, "cp"))
		fprintf(stdout,	"The file %s.cp	was not	in the work lib0,
			 name);
       }

SEE ALSO
       mbk(1), MBK_WORK_LIB(1),	unlink(3).

ASIM/LIP6			October	1, 1997			  MBKUNLINK(3)

NAME | SYNOPSYS | PARAMETERS | DESCRIPTION | RETURN VALUE | EXAMPLE | SEE ALSO

Want to link to this manual page? Use this URL:
<https://www.freebsd.org/cgi/man.cgi?query=mbkunlink&sektion=3&manpath=FreeBSD+12.1-RELEASE+and+Ports>

home | help