ka***************@gmail.com wrote:
hai i am new to this group. can anyone give me the code for pritf
function.
my question is i need to write my own function for the printf statement.
Firstly posting multiple times in quick succession won't help you get
better responses; on the contrary many regulars will tend to ignore
you. Please read the following:
<http://cfaj.freeshell.org/google/>
<http://clc-wiki.net/wiki/Introduction_to_comp.lang.c>
Now coming to your question, the "code" for a printf() function will
vary from one implementation to another, so there is no such thing as
"the" code for a printf() function. If you're implementing the printf()
function as a part of a customised C implementation, then you should be
knowing how to go about it, not ask in a newsgroup.
On the other hand, if it is a learning exercise, you might try looking
at the source code of freely available C standard libraries like glibc,
dietlibc, mingw, DJGPP etc.