A makes a contract with B to buy B’s horse if A survives C. This contract cannot be enforceed by law ?

A makes a contract with B to buy B’s horse if A survives C. This contract cannot be enforceed by law ?

A. Unless and until C dies in A’s life time
B. Unless and until A dies in C’s life time
C. Both A and C dies
D. None of above