I thought I'd add a macro solution just for fun:
#define printit(S, X, F)\ do{\ printf("%s", (S));\ printf((F), *(X));\ } while(0)