second arguement of read() system call is '0' . how it can be ? - Embedded

This is a discussion on second arguement of read() system call is '0' . how it can be ? - Embedded ; hi all, i came across this line of code while going thru jphoto code.the second arguement of this read system call is zero.can any one pl. explain what is this statement means ? len = fd.read (fd.data, 0, fd.data.length); thnx ...

+ Reply to Thread
Results 1 to 2 of 2

Thread: second arguement of read() system call is '0' . how it can be ?

  1. second arguement of read() system call is '0' . how it can be ?

    hi all,

    i came across this line of code while going thru jphoto code.the
    second arguement of this read system call is zero.can any one pl.
    explain what is this statement means ?

    len = fd.read (fd.data, 0, fd.data.length);

    thnx 'n' regards,
    ramakrishnaprasad.a


  2. Re: second arguement of read() system call is '0' . how it can be ?

    "Ramakrishnaprasad.A" writes:

    > can any one pl.
    > explain what is this statement means ?


    Cld u pls spl cmplt wrds in your future messages?

    > len = fd.read (fd.data, 0, fd.data.length);


    This is not a "system call read".

    This is a call to member function read() of whatever class 'fd'
    variable is an instance of.

    Cheers,
    --
    In order to understand recursion you must first understand recursion.
    Remove /-nsp/ for email.

+ Reply to Thread