Re: g_print vs printf



Peter Jay Salzman <p dirac org> writes:
i'm curious why gtk replaced printf with g_print as a printing function.

does it help portability?   isn't printf standardized by ANSI?


The only real value to g_print() is that you can use it without
including stdio.h. It's mostly useless.

Oh, also you can g_set_print_handler(), which is useful from time to
time.

Havoc




[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]