Difference between revisions of "MCSDelVar2"

From WikiPrizm
Jump to navigationJump to search
 
(3 intermediate revisions by 2 users not shown)
Line 1: Line 1:
== Synopsis ==
+
{{syscall
'''Header:''' mcs_syscalls.h
+
| name = MCSDelVar2
 +
| header = fxcg/file.h
 +
| index = 0x1558
 +
| signature = int MCSDelVar2(unsigned char* dir, unsigned char* item)
 +
| synopsis = Deletes a variable inside a directory from the main memory.
 +
| parameters =
 +
* '''dir''' - The name of the directory where the file to delete is located;
 +
* '''item''' - The name of the item to delete.
 +
| returns = * 0 for success;
 +
* 0x40 if '''dir''' or the '''item''' in '''dir''' does not exist.
 +
}}
  
'''Syscall:'''
+
[[Category:Syscalls:MCS]]
 
 
'''Function declaration:''' int MCSDelVar2(unsigned char* dir, unsigned char* item);
 
 
 
Deletes a variable from a directory from main memory.
 
 
 
=== Inputs ===
 
* ''unsigned char*'' '''dir''' - The name of the directory.
 
* ''unsigned char*'' '''item''' - The name of the item.
 
 
 
=== Outputs ===
 
* '''0''' - Success
 
* '''other''' - Failure
 
 
 
== Comments ==
 
Output could be error codes. Still needs investigation.
 
 
 
[[Category:Syscalls]]
 

Latest revision as of 09:49, 30 July 2014


Synopsis

Header: fxcg/file.h
Syscall index: 0x1558
Function signature: int MCSDelVar2(unsigned char* dir, unsigned char* item)

Deletes a variable inside a directory from the main memory.

Parameters

  • dir - The name of the directory where the file to delete is located;
  • item - The name of the item to delete.

Returns

  • 0 for success;
  • 0x40 if dir or the item in dir does not exist.