nn::hio::CTR::HostFile::Write Member Function

Syntax

#include <nn/hio.h>

s32 Write(
     const void * buf,
     size_t size
);

Arguments

Name Description
in buf Pointer to the buffer that stores the data to be written.
in size Maximum number of bytes to write.

Return Values

Returns the actual number of bytes that were written. If an error occurred, it returns -1.

Description

Writes the specified amount of data from a buffer to a file, and returns the size of data (in bytes) that were actually written.

Revision History

2010/03/31
Initial version.

CONFIDENTIAL