Previous Topic: Related FunctionsNext Topic: EApiFetchModelAuthInfo


Example

#include <eapidef.h>
EAPIRC rc = EAPI_SUCCESSFUL_RC;
MODELID nModelId;
LCOUNT lCount, i;
GRPID szArrayUserIds;
nModelId = 9L;
lCount = 100L;
rc = EApiFetchUsersGrpsModelAuth(nModelId,
&lCount,
szArrayUserIds);
if ( rc > EAPI_MAXIMUM_COUNT_REACHED_RC)
printf("Error in EApiFetchUsersGrpsModelAuth\n");
else
{
printf("Count = %ld\n", lCount);
for (i=0; i < lCount; i++)
printf("User Id[%ld] = %s\n", i, szArrayUserIds[i]);
}