GSP
Quick Navigator

Search Site

Unix VPS
A - Starter
B - Basic
C - Preferred
D - Commercial
MPS - Dedicated
Previous VPSs
* Sign Up! *

Support
Contact Us
Online Help
Handbooks
Domain Status
Man Pages

FAQ
Virtual Servers
Pricing
Billing
Technical

Network
Facilities
Connectivity
Topology Map

Miscellaneous
Server Agreement
Year 2038
Credits
 

USA Flag

 

 

Man Pages


Manual Reference Pages  -  MBKUNLINK (3)

[Include document man1/alc_contents.mac]

   mbkunlink    mbkunlink

NAME

mbkunlink - delete a file in the WORK_LIB\P.

[Include document man1/alc_origin.1]

CONTENTS

Synopsys
Parameters
Description
Return Value
Example
See Also

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 simple 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).

[Include document man1/alc_bug_report.1]

Search for    or go to Top of page |  Section 3 |  Main Index


ASIM/LIP6 MBKUNLINK (3) October 1, 1997

Powered by GSP Visit the GSP FreeBSD Man Page Interface.
Output converted with manServer 1.07.