1 /* Sample code to dump all feature codes and their descriptions */
8 int main(int argc
, char **argv
)
11 gboolean numeric
= FALSE
;
13 const char *featurestring
;
15 if (argc
>= 2 && strcmp(argv
[1], "-n") == 0) {
19 for (feature
= F_CAL33
; feature
< F_LAST_VALUE
; feature
++) {
20 featurestring
= GSM_FeatureToString(feature
);
21 if (featurestring
== NULL
) {
22 fprintf(stderr
, "Unknown feature message for %d!\n", feature
);
25 if (feature
!= GSM_FeatureFromString(featurestring
)) {
26 fprintf(stderr
, "Could not map string %s back to %d!\n", featurestring
, feature
);
31 printf("%d. %s\n", feature
, featurestring
);
33 printf("# %s\n", featurestring
);
40 /* Editor configuration
41 * vim: noexpandtab sw=8 ts=8 sts=8 tw=72: