官方示例,设置环境变量 获取环境变量值
/******************************************************************************
Copyright © 2006 Unigraphics Solutions, Inc.
Unpublished - All Rights Reserved
*******************************************************************************/
#include <uf.h>
#include <stdio.h>
#define UF_CALL(X) (report( FILE, LINE, #X, (X)))
static int report( char *file, int line, char *call, int irc)
{
if (irc)
{
char messg[133];
printf(“%s, line %d: %s\n”, file, line, call);
(UF_get_fail_message(irc, messg)) ?
printf(" returned a %d\n", irc) :
printf(" returned error %d: %s\n", irc, messg);
}