1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38
|
/* --------------------------------------------------------------------
Project: HP200LX FILER PROTOCOL (CLIENT) COMMUNICATIONS FOR PAL
Module: DELFILER.C
Author: Harry Konstas
Started: 17. Oct. 95
Subject: Delete a file in Server.
-------------------------------------------------------------------- */
/* --------------------------------------------------------------------
includes
-------------------------------------------------------------------- */
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
/* --------------------------------------------------------------------
local includes
-------------------------------------------------------------------- */
#include "pal.h"
#include "palpriv.h"
/* --------------------------------------------------------------------
Delete Server file
-------------------------------------------------------------------- */
int FilerDelFile(FILERCOM *pFiler, char *RemoteFile)
{
/* delete file */
if(FilerRequest(pFiler, DEL_FILE, strlen(RemoteFile),
(BYTE *)RemoteFile) == NO_RESPONSE) {
return CANNOT_DELETE;
}
return FILE_DELETED;
}
|