NCM_GetCspCountryName( )
Description | Cautions | Example | Error Codes | See Also
NCMRetCode NCM_GetCspCountryName( szCountryCode, ppncmName )
char *szCountryCode NCMValue **ppncmName NCM_SUCCESS if success NCM error code if failure NCMApi.h synchronous Description
The NCM_GetCspCountryName( ) function gets the country name for a country code from the DCM Catalog. For more information about modifying country-specific parameter values, see Section 2.7, Working with Country Specific Parameters.
The function parameters are defined as follows:
szCountryCode ASCII-Z string containing ISO country code ppncmName address of the pointer that will point to the country name Cautions
The DCM API allocates memory for the data returned by this function. To avoid memory leaks, the client application must deallocate this memory by calling the NCM_Dealloc( ) or NCM_DeallocValue( ) function.
Example
#include "NCMApi.h" ... NCMValue * pName = NULL; // // Execute // NCMRetCode ncmRc = NCM_GetCspCountryName( "US", &pName ); if ( ncmRc == NCM_SUCCESS ) { ... } else { // Process error ... } // Deallocate memory when through // with it NCM_Dealloc( pName ); ...Error Codes
See Also
Click here to contact Telecom Support Resources
Copyright 2003, Intel Corporation