Well said T R and I would add that in the case of Andersonville I have red several accounts which state that the prisoners there got the same food rations as the guards.
The problem was that some prisoners there formed gangs which stole food from prisoners.