Stupid bullshit in C (I dislike this language...)