Returns the number of cells in the specified slice string.
Syntax
ESS_FUNC_M EssPartitionGetAreaCellCount (hCtx, pszSlice, pdCount);
Parameter | Data Type | Description |
---|---|---|
hCtx | ESS_HCTX_T | API context handle. |
pszSlice | ESS_STR_T | Input slice definition to be checked. |
pdCount | ESS_PDOUBLE_T | Returns number of cells here. |
Return Value
Returns zero if successful; error code if unsuccessful.
Example
ESS_FUNC_M ESS_PartitionGetAreaCellCount(ESS_HCTX_T hCtx) { ESS_FUNC_M sts = ESS_STS_NOERR; ESS_DOUBLE_T pdCount; ESS_STR_T pszSlice; pszSlice = "@IDESC(East)"; sts = EssPartitionGetAreaCellCount(hCtx, pszSlice, &pdCount); if (!sts) { printf("EssPartitionGetAreaCellCount sts: %ld\n",sts); printf("\tArea cell count = %g \n",pdCount); } return(sts); }
See Also