Unlike printf(), puts() outputs a newline after the string, which is why it cannot be optimized out. Alexander