sdmf_clusConf.c: generalized a few functions