Common utilities for c/c++ coding