...
/* Get the expire time for a feature */
int nTimeLeft;
LMX_FEATURE_INFO FI;
/* Try to see which type of feature this is */
LMX_GetFeatureInfo(LmxHandle, "f2", &FI);
nTimeLeft = LMX_GetExpireTime(LmxHandle, "f2");
if (nTimeLeft == -2)
printf("This feature does not expire\n");
else if (nTimeLeft == -1)
printf("This feature is expired\n");
else /* feature has not yet expired */ printf
printf("Hours left for this feature: %d\n", nTimeLeft);