* Allocate and return a new feature set large enough to * hold the specified number of features. * @param NumFeatures maximum # of features to be put in feature set * @return New #FEATURE_SET. * @note History: Mon May 21 14:22:40 1990, DSJ, Created. */
| 111 | * @note History: Mon May 21 14:22:40 1990, DSJ, Created. |
| 112 | */ |
| 113 | FEATURE_SET NewFeatureSet(int NumFeatures) { |
| 114 | FEATURE_SET FeatureSet; |
| 115 | |
| 116 | FeatureSet = (FEATURE_SET) Emalloc (sizeof (FEATURE_SET_STRUCT) + |
| 117 | (NumFeatures - 1) * sizeof (FEATURE)); |
| 118 | FeatureSet->MaxNumFeatures = NumFeatures; |
| 119 | FeatureSet->NumFeatures = 0; |
| 120 | return (FeatureSet); |
| 121 | |
| 122 | } /* NewFeatureSet */ |
| 123 | |
| 124 | /** |
| 125 | * Create a new feature of the specified type and read in |
no test coverage detected