On the button Click where you wish to from C - A simply pop the back stack as
public void onClick(View v){
fragmentManager.popBackStack();
}
This will pop C from the back stack i.e. take it out or remove and you will go back to B and since you would have added B to back stack while coming from A, on onBackPress from B you will be taken back to A, the way you want. :)