Fix Visual Studio compilation

 - macro to define snprintf
Vector: first API definition

 - Tests written