Retrieve the first credential from query result.
#include <sys/credential/credential_store.h>
int credential_query_result_get_first(const credential_query_result_t *result,
credential_t **cred)
BlackBerry 10.3.1
The credential query result.
On return, a pointer to the first credential in iteration. If query did not produce any results, then this pointer will be set to 0. The memory for the returned credential is owned by the underlying query result. If you need a private copy of the credential, call credential_close() to create a copy.
This is a convenience function that returns the first credential from a query result. The returned credential is owned by the query result and will be released when the query result is released.
0 if operation was successful, error code otherwise.