/**************************************************************************** REMARKS: Return the path to the SNAP configuration files. ****************************************************************************/ const char * PMAPI PM_getSNAPConfigPath(void) { static char path[256]; strcpy(path,PM_getSNAPPath()); PM_backslash(path); strcat(path,"config"); return path; }
int main(void) { char szBPDName[] = "graphics.bpd"; char szBPDPath[PM_MAX_PATH]; printf("The OS name is: %s\n", PM_getOSName()); printf("The SNAP path is: %s\n", PM_getSNAPPath()); if (PM_findBPD(szBPDName, szBPDPath)) printf("The graphics BPD path is: %s%s\n", szBPDPath, szBPDName); else printf("The graphics BPD path cannot be found.\n"); return 0; }