jeff@quark.WV.TEK.COM (Jeff Beadles) (07/11/89)
In article <774@sbsvax.UUCP> greim@sbsvax.UUCP (Michael Greim) writes: >As to "puts() will never be slower than printf()": I recall reading >somewhere that some people think about implementing puts() using printf(). You ARE kidding, right? Puts can be something ridiculously simple. Something like this would work: (I know that it's not "correct" but the concept is. :-) puts(string) char string register char *cp = string; while(*cp) putchar(*cp++); putchar('\n'); Why use printf for something this simple? Would they do something like: #define puts(x) printf("%s\n", x); Ack. -Jeff -- Jeff Beadles Utek Sustaining Engineering, Tektronix Inc. jeff@quark.WV.TEK.COM