A flux-limited sample of galactic carbon stars