#include <stdio.h>

// This goes to the header file

typedef struct{
    float x,y,z;
}vector;

vector vectorScale(float c, vector *v);

// This is implementation

inline vector vectorScale(float c, vector *v){
    return (vector){.x = v->x * c, .y = v->y * c, .z = v->z * c};
}

int main(void) {
	vector v = {.x=1, .y=2, .z=3};
	vector w = vectorScale(5, &v);
	printf("%f %f %f\n", w.x, w.y, w.z);
	return 0;
}
