Re: need some help

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



You would like to download glibc source and then start looking for whatever you
want...


Thanks.
Sumit Sharma.


On Mon, 20 Sep 2004 Naveen Atmakuri wrote : >hello, > >My name is A.Naveen Kumar, > >I am looking out for source code of "printf" function. > >Can any body tell me where can i find the source code >for this function. > >My email address is ankumarank@xxxxxxxxx > >===== >Regards, >A.Naveen Kumar, >Mistral software pvt.ltd, >#60,Adarsh regent, >100ft Ring road,Domlur Extension, >Banglore. >Phone no.5356400

Alternatively, you can look at the source of printk which is similar(not equal) to printf.
It does not do all the things done by printf but the basic idea is the same.
http://lxr.linux.no/source/kernel/printk.c#L407


Formatting method is quite similar i.e vsprintf(), But to write to the screen,

For printf,
In UNIX everything is file so writing to STDOUT will write in screen
write(1, ...).

printk uses different method (circular buffer).

regards manish

_________________________________________________________________
Add photos to your messages with MSN 8. Get 2 months FREE*. http://join.msn.com/?page=features/featuredemail



-- Kernelnewbies: Help each other learn about the Linux kernel. Archive: http://mail.nl.linux.org/kernelnewbies/ FAQ: http://kernelnewbies.org/faq/


[Index of Archives]     [Newbies FAQ]     [Linux Kernel Mentors]     [Linux Kernel Development]     [IETF Annouce]     [Git]     [Networking]     [Security]     [Bugtraq]     [Yosemite]     [MIPS Linux]     [ARM Linux]     [Linux RAID]     [Linux SCSI]     [Linux ACPI]
  Powered by Linux