printf implementation again

srini at diablo.amd.com srini at diablo.amd.com
Sat Feb 3 10:48:53 AEST 1990


In article <22238 at mimsy.umd.edu> you write:
>>Also, how is printf implemeted (upto the _write level) in library?
>>It calls a function _doprnt. What happens from there?
>
>What makes you think it calls _doprnt?  Mine calls vfprintf.

Does vprintf call _doprnt? From what I have found so far, _doprnt
is called, _flsbuf is called to flush buffer, and a memory copy
(memcpy) is done to copy from buffer to file. Other functions that
are involved are _fwrite (where memcpy is done?), _fconv, which
converts everything (?) to strings so that they can be printed.
There may be others.
If all these are implementation dependent, then let me rephrase my
original question. What are the factors that are assumed or 
considered to implement printf or in the already existing printf
implementation(s)?


Srini
-----
Post reply. Or send to srini at cayman.amd.com.



More information about the Comp.unix.questions mailing list