KCMS Application Developer's Guide

Example


Example 4-6 KcsGetLastError()

KcsErrDesc				errDesc;

 status = KcsLoadProfile(&profile, &profileDesc,
 			KcsLoadAttributesNow);
 if (status != KCS_SUCCESS) {
 	status = KcsGetLastError(&errDesc);
 	fprintf(stderr,"%s KcsLoadProfile failed error = %s\n",
 				errDesc.desc);
 	exit(1);
 }