.
On Fri, Apr 18, 2008 at 5:56 AM, Sathya Raghunathan <
[EMAIL PROTECTED]> wrote:

>
> A process has a char buffer(4096 bytes) which contains a log statement
> which
> is a comma seperated string of the following information:
> loglevel, errorlevel, Module name, function name, description of the error
> etc.
> (Variable length string and can go upto 4096 characters)
>
> Now my requirement is to send this comma seperated string to a different
> process through a FIFO.
>
> My doubt is,
> 1) is it better to use write(fifofile,buffer,4096) or
> 2) should i use any other function like fputs or
> fwrite(fifofile,strlen(buffer))?
>

Are you opening the pipe with popen? If so, you should use fwrite since
popen returns FILE *

Showing your code would be helpful also.

-- Brett
------------------------------------------------------------
"In the rhythm of music a secret is hidden;
If I were to divulge it, it would overturn the world."
-- Jelaleddin Rumi


[Non-text portions of this message have been removed]

Reply via email to