@Nilesh
well, function like putc,putchar etc are not allow to use.



regards
Sahil
http://twitter.com/sonusahil
http://www.commgod.co.cc
 ....The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong One.
'Do it yourself'. Yes, that's it.


On Sat, Aug 28, 2010 at 6:39 PM, Nilesh Govindarajan <[email protected]>wrote:

> On 08/28/2010 02:00 PM, sonu kumar wrote:
>
>> hi,
>> Am looking for an solution to write a function similar to printf() in C.
>> I know it's going to be hardware and OS dependent..
>> Logic is to find the terminal file and write into it.
>> But where and which file/dir  ,i have to look for to do the same in Linux
>> ?
>>
>>
>> Any help would be great :D
>>
>>
>>
>>
>>
>> regards
>> Sahil
>> http://twitter.com/sonusahil
>> http://www.commgod.co.cc
>>  ....The Linux philosophy is 'Laugh in the face of danger'. Oops. Wrong
>> One. 'Do it yourself'. Yes, that's it.
>>
>> --
>> l...@iitd - http://tinyurl.com/ycueutm
>>
>
> Does your project permit the use of standard libraries?
> If yes, you can use stdarg.h to setup variable argument function.
> Read Kerningham & Ritchie's book on C, it has one such example (Google
> search for it).
>
> You can also check the manpage on stdarg.h
>
> --
> Regards,
> Nilesh Govindarajan
> Facebook: http://www.facebook.com/nilesh.gr
> Twitter: http://twitter.com/nileshgr
> Website: http://www.itech7.com
> VPS Hosting: http://www.itech7.com/a/vps
>
> --
> l...@iitd - http://tinyurl.com/ycueutm
>

-- 
l...@iitd - http://tinyurl.com/ycueutm

Reply via email to