示例#1
0
文件: pm.c 项目: kendallb/scitech-mgl
/****************************************************************************
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;
}
示例#2
0
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;
}