shared-lib: use integer formatting analogy