Talk:Printf
From Wikipedia, the free encyclopedia
from VfD:
Wikipedia is not a manual. (And if it were, it certainly wouldn't be a C manual) --fvw* 21:42, 2004 Nov 27 (UTC)
- Keep - I think an entry on printf in general should exist, but it shouldn't be particularly language specific or implementation-centric. In short, it should be more of an overview of the concept of printf, not it's specific use and features. Should be a cleanup Zachlipton 22:27, 27 Nov 2004 (UTC)
- Move to Wikibooks for C language. Exactly the place. Mikkalai 22:49, 27 Nov 2004 (UTC)
- Good thinking. I would say to move it there and then use the Wikipedia entry for a more general look at printf. Zachlipton 23:08, 27 Nov 2004 (UTC)
- Delete. Wikipedia is not your local manpages. Anyone needing this already has the documentation. There really isn't much, conceptually, behind printf() that isn't language specific. --Improv 23:21, 27 Nov 2004 (UTC)
- I think there is something to printf (maybe not a lot, but certainly something) that is the concept of the function and not related to the implementation. I'll try to mock up a better version of this entry on it's talk page when I get a chance. Zachlipton 01:54, 28 Nov 2004 (UTC)
- I disagree, but let me know when you make said mockup -- I am willing to listen to arguments otherwise. --Improv 05:27, 1 Dec 2004 (UTC)
- I think there is something to printf (maybe not a lot, but certainly something) that is the concept of the function and not related to the implementation. I'll try to mock up a better version of this entry on it's talk page when I get a chance. Zachlipton 01:54, 28 Nov 2004 (UTC)
- Keep - agree with Zach. But add C-specific stuff to Wikibooks. --Whosyourjudas (talk) 01:19, 28 Nov 2004 (UTC)
- Delete, basic example of "Wikipedia is not a manual" Gazpacho 01:52, 28 Nov 2004 (UTC)
- Delete: As others have said: no man pages. Geogre 01:57, 28 Nov 2004 (UTC)
- Keep. More likely than other functions to up in everyday conversation. - RedWordSmith 03:41, Nov 28, 2004 (UTC)
- This is an exception to the rule. Keep and cleanup. Agree with Zachlipton. —[[User:Radman1|RaD Man (talk)]] 03:45, 28 Nov 2004 (UTC)
- Delete: DCEdwards1966 05:16, Nov 28, 2004 (UTC)
- Cleanup as suggested by Zachlipton. Printf-like functions are common enough that an article on the basic theory has merit beyond the 'man page' level. -- Antaeus Feldspar 05:31, 28 Nov 2004 (UTC)
- Keep. Most notable of all C functions. It would be hard to read other articles about C unless there is a description of printf available one wikilink away. jni 11:57, 28 Nov 2004 (UTC)
- Keep - that's a classic. Although I think the article doesn't need all these switches. Grue 18:31, 28 Nov 2004 (UTC)
- Keep. It's famous enough unlike sscanf. This is one of the few exceptions to the rule. Jeltz 20:48, 2004 Nov 28 (UTC)
- Forgot to add that if it should be kept the man stuff obviously has to go to wikibooks. But there si potential for having a dictionary article about printf or to make it a redirect to a page about printfunctions in general. Jeltz 20:52, 2004 Nov 28 (UTC)
- Keep. Notable function. ElBenevolente 00:19, 29 Nov 2004 (UTC)
- Keep, printf isn't just any function, it's the function. Like others have said, it's the exception to the rule, and thoroughly necessary to discussions of C related topics. Shane King 23:26, Nov 30, 2004 (UTC)
A quick update: I went ahead and put the C-specific bits into Wikibooks (there has not been very much progress on the C wikibook, but I made space and included it). I'll try to rewrite the existing Wikipedia entry when I have the time. If someone else wants to do it, of course go right on ahead. Zachlipton 01:40, 29 Nov 2004 (UTC)
- Strong keep. Notable function. Certainly should have the options included with it. --Idont Havaname 06:24, 29 Nov 2004 (UTC)
- keep and note that printf is used in other languages too. Possibly remove the list of format specifications and link to it elsewhere (wikibooks or other sources). ~leif ☺ HELO 06:44, 29 Nov 2004 (UTC)
end moved discussion
Contents |
[edit] Unattributed edits
The edits by User:68.100.130.21 on this page were by me. --Graue 21:31, 11 October 2005 (UTC)
[edit] v variants
the v-variants need to be explained better. Why are they necessary? I can understand that this has to do with the fact that you cannot simply
char* f(char* s, ...){ printf(s, ...); // what should the arguments be??? }
but a code example for how vprintf solves that would be nice. --MarSch 13:33, 13 April 2006 (UTC)
[edit] Error in sprintf example
In the sprintf example, related to buffer overflows, it says: "If username in the above example exceeds 50 characters in length..." Having 35 characters on username will be enough to overflow the buffer. They forgot to count the characters in "Your name is ", period, newline and terminating null character.
[edit] Implimentation of printf
I think it would be very helpful to have an implimentation of printf - how it works at a lower level. I would think that it uses write() at the most basic portable level, but I have no idea where to find if thats true, or how it works. Fresheneesz 22:07, 17 September 2006 (UTC)