How can i print anything without using printf( ) or anyother inbuilt
function calls??
Use a pen and paper.
Questions of the form "How can I do X without using Y", where Y is the
obvious way to do X, are almost invariably homework.
--
Keith Thompson (The_Other_Keit h) kst-u@mib.org <http://www.ghoti.net/~kst>
San Diego Supercomputer Center <* <http://users.sdsc.edu/~kst>
We must do something. This is something. Therefore, we must do this.
How can i print anything without using printf( ) or anyother inbuilt
function calls??
printf() is not in-built in the C language. There's no portable answer
to your question. Under _certain_ systems, you may be able to print to
the display by writing character code values into the video memory, but
ask further questions in this regard to more system specific groups.
How can i print anything without using printf( ) or anyother inbuilt
function calls??
>
printf() is not in-built in the C language.
Yes, it is. It's defined in the ISO C Standard, which: "specifies the
form and establishes the interpretation of programs written in the C
programming language."
>
How can i print anything without using printf( ) or anyother inbuilt
function calls??
You could use the putc macro if there is one,
but in order to ensure that putc is a macro
and that it also does not make a call to a built in function,
you would also need a genie.
How can i print anything without using printf( ) or anyother inbuilt
function calls??
printf() is not in-built in the C language.
>
Yes, it is. It's defined in the ISO C Standard, which: "specifies the
form and establishes the interpretation of programs written in the C
programming language."
On 8 Dec 2006 08:09:02 -0800, in comp.lang.c , "santosh"
<santosh.k83@gm ail.comwrote:
>Richard Bos wrote:
>"santosh" <santosh.k83@gm ail.comwrote:
>>
ragav wrote:
How can i print anything without using printf( ) or anyother inbuilt
function calls??
>
printf() is not in-built in the C language.
>>
>Yes, it is. It's defined in the ISO C Standard, which: "specifies the
>form and establishes the interpretation of programs written in the C
>programming language."
>
>Not for freestanding implementations .
Its still part of the C language definition..
Also, how likely do you think it is that the OP is working on a
freestanding implemetation?
--
Mark McIntyre
"Debugging is twice as hard as writing the code in the first place.
Therefore, if you write the code as cleverly as possible, you are,
by definition, not smart enough to debug it."
--Brian Kernighan
santosh wrote:
ragav wrote:
How can i print anything without using printf( ) or anyother inbuilt
function calls??
printf() is not in-built in the C language.
>
Yes, it is. It's defined in the ISO C Standard, which: "specifies the
form and establishes the interpretation of programs written in the C
programming language."
Not for freestanding implementations .
>
Its still part of the C language definition..
Yes. I assumed that the OP meant by word 'inbuilt' as to being built
into the compiler proper. Which is why I answered as I did. Looking
back, I certainly expressed it the wrong way.
Tuning the answer to the receiver (Was: Print without using any inbuilt function?)
In article <949ln2951cnpen p2seu9f2206tph8 pdiem@4ax.com>,
Mark McIntyre <markmcintyre@s pamcop.netwrote :
....
>Also, how likely do you think it is that the OP is working on a
>freestanding implemetation?
But, alas, the sentiment behind that statement goes for 99% of the
"advice" given in this ng. The typical "I just want my Windows GUI app
that was assigned to me as homework program to work so I can pass this
da** class" poster generally could not care less about the sort of
"Well, the standard says..." kind of advice that the regs here dish out.
But we do it anyway. So, let's not be hypocritical about it.
>How can i print anything without using printf( ) or anyother inbuilt
>function calls??
>
printf( ) isn't an inbuilt function call. It's just a function call.
>
If you don't want to use printf, use vprintf or vfprintf or puts or putchar
or putc or fputc or even fwrite. None of these are inbuilt function calls.
>
What's wrong with printf, anyway? Don't you like it?
>
One of 2 reasons
01) Homework
10) 8 bit compiler (printf is big)
Comment