Arduiniana streaming, printf()

There was a thread yesterday that looked interesting but, has now been deleted.
It was a workaround to using printf on the Arduino.

Here is an alternative method.
Most of you programmers are aware of this but, new people might find it interesting:
http://arduiniana.org/libraries/streaming/

"This syntax is familiar to many, is easy to read and learn, and, importantly, consumes no resources. (Because the operator functions are essentially just inline aliases for their print() counterparts, no sketch gets larger or consumes more RAM as a result of their inclusion.)"
.

Yes I bookmarked that "absurdly easy" post. Why was it deleted? Streaming is interesting but not quite as interesting as absurdly easy printf.

It got deleted because the OP got his nose out of joint when people questioned his approach, and he deleted ALL of the text from ALL of his posts, leaving nothing of value there....

Regards,
Ray L.

Here was the start of the deleted post example:

int temp = 30;

int getChar (FILE *fp)
{
    while (!(Serial.available()));
    return (Serial.read());
}

int putChar (char c, FILE *fp)
{
    if (c == '\n') {
        putChar ((char) '\r', fp);
    }
    Serial.write (c);
    return 0;
}

void setup()
{
Serial.begin(9600);
  fdevopen (putChar, getChar);
}

void loop()
{
   printf ("The temperature is %d degrees C.\n", temp);
  
}

RayLivingston:
It got deleted because the OP got his nose out of joint when people questioned his approach, and he deleted ALL of the text from ALL of his posts, leaving nothing of value there....

Regards,
Ray L.

That is a bummer.
Thanks for the sketch LarryD.
Does anybody remember the background info about what makes it work?