You should check the value of the determinant of the three vectors. Either it is 0 and at least one vector is a linear combination of the two others. In this case ,the dimension of the subspace may be 0, 1 or 2 but has it is neither 0 nor 1 (why ?) it'll necessarily be 2. Either the value is not 0 and the subspace has dimension 3.