/****************************************************************************** Copyright (c) 1999 Unigraphics Solutions, Inc. Unpublished - All Rights Reserved *******************************************************************************/ /* This code gets the information window preference and prints it. */ #include #include void ufusr(char *param, int *retcod, int param_len) { int mode, dec_places=0; UF_initialize(); if ( UF_UI_ask_iw_decimal_places( &mode, &dec_places ) != 0 ) printf( "UF_UI_ask_iw_decimal_places failed\n" ); else if ( mode == UF_UI_SYSTEM_DECIMAL_PLACES ) printf( "UF_UI_SYSTEM_DECIMAL_PLACES\n" ); else if ( mode == UF_UI_USER_DECIMAL_PLACES ) printf( "UF_UI_USER_DECIMAL_PLACES = %d\n", dec_places ); UF_terminate(); }