Alright, I have 2 boxes (C code). I want box A, to check if it collided with box B (the bounding box), and if so, stop it.

Right now, I have a function that returns 0 or 1, but the way I check for collision is, the function accepts and X, Y, and the 4 points of the bounding box, it will check the bounding box to see if the X, Y is in it, and return 1 or 0 depending on what it is. Is their a better way of doing this?