Difference between revisions of "MCSPutVar2"

From WikiPrizm
Jump to navigationJump to search
(Created page.)
 
Line 4: Line 4:
 
'''Function declaration:''' int MCSPutVar2(unsigned char* dir, unsigned char* item, int data_len, void* buffer);
 
'''Function declaration:''' int MCSPutVar2(unsigned char* dir, unsigned char* item, int data_len, void* buffer);
  
Creates '''item''' in '''dir''' with '''bytes_to_write''' bytes of data from '''buffer'''.
+
Creates '''item''' in '''dir''' in main memory with '''bytes_to_write''' bytes of data from '''buffer'''.
  
 
=== Inputs ===
 
=== Inputs ===

Revision as of 00:30, 8 February 2012

Synopsis

Syscall:

Function declaration: int MCSPutVar2(unsigned char* dir, unsigned char* item, int data_len, void* buffer);

Creates item in dir in main memory with bytes_to_write bytes of data from buffer.

Inputs

  • unsigned char* dir - The name of the directory.
  • unsigned char* item - The name of the item.
  • int bytes_to_write - The length of data to write.
  • void* buffer - The data to write.

Outputs

  • 0 - Success
  • other - Failure

Comments

Output could be error codes. Still needs investigation.