Go4Expert

Go4Expert (http://www.go4expert.com/)
-   C (http://www.go4expert.com/forums/c/)
-   -   regarding function (http://www.go4expert.com/forums/regarding-function-t8010/)

answerme 27Dec2007 16:49

regarding function
 
Code:

  PDEV *get_dfprt(register mydnum flx)
{
        u_short ctr;
        DUPNUM *dptr = &GDFNUM[0];
        for(ctr=0;ctr<DFNUM_EN;ctr++,dptr++)
        {
                if(dptr->num == flx)
                        return(&dptr->pd);
        }
        return((PDEV *)0);
}

where PDEV is a structure & having some members

Iam not getting this function definition ,what does it means

PDEV *get_dfprt(register mydnum flx)

answerme 27Dec2007 16:51

Re: regarding function
 
Quote:

Originally Posted by answerme
Code:

  PDEV *get_dfprt(register mydnum flx)
{
        u_short ctr;
        DUPNUM *dptr = &GDFNUM[0];
        for(ctr=0;ctr<DFNUM_EN;ctr++,dptr++)
        {
                if(dptr->num == flx)
                        return(&dptr->pd);
        }
        return((PDEV *)0);
}

where PDEV is a structure & having some members

Iam not getting this function definition ,what does it means

PDEV *get_dfprt(register mydnum flx)

mydum is unsigned long


All times are GMT +5.5. The time now is 01:46.