prototyping in C -- inspired by JS