ResultToErrorCode

nn::friends::CTR::ResultToErrorCode Function

Syntax

u32 ResultToErrorCode(
     const Result & result
);

Parameters

Name Description
in result Specifies a result obtained from a friend presence library functions.

Return Values

Returns the error code corresponding to the specified result.
Returns 0 when specifying results that do not need to display an error code or for results from functions not in the FRIENDS library.

Value Description
0 There are no error codes corresponding to friend relationships.
Other Error code.

Description

Gets an error code from a friend presence library function result.

Revision History

2011/03/11
Added specific examples of return values.
2010/08/16
Initial version.

CONFIDENTIAL