Caffeine only withholds sleep by giving you temporary energy boosts. Nothing can replace sleep, and without it the body can't perform vital functions.
A lack of sleep can kill you, though you're likely to simply drop unconscious from sheer exhaustion after extended periods of being awake. I think the longest record anyone's been able to stay awake was eleven days. I myself have managed just under a week...it was hell. Haha.