fatfs/src/ff.c
static void init_alloc_info (
	FATFS* fs,		/* Filesystem object */
	FFOBJID* obj	/* Object allocation information to be initialized */
)
{
	obj->sclust = ld_dword(fs->dirbuf + XDIR_FstClus);		/* Start cluster */
	obj->objsize = ld_qword(fs->dirbuf + XDIR_FileSize);	/* Size */
	obj->stat = fs->dirbuf[XDIR_GenFlags] & 2;				/* Allocation status */
	obj->n_frag = 0;										/* No last fragment info */
}
/*------------------------------------------------------------------*/
/* exFAT: Initialize object allocation info with loaded entry block */
/*------------------------------------------------------------------*/
Initialize object allocation info with loaded entry block
Initialize object allocation info with loaded entry block
static void init_alloc_info (
	FATFS* fs,		
	FFOBJID* obj	
)
{
	obj->sclust = ld_dword(fs->dirbuf + XDIR_FstClus);		
	obj->objsize = ld_qword(fs->dirbuf + XDIR_FileSize);	
	obj->stat = fs->dirbuf[XDIR_GenFlags] & 2;				
	obj->n_frag = 0;										
}
static void init_alloc_info ( FATFS * fs , FFOBJID * obj ) { obj -> sclust = ld_dword ( fs -> dirbuf + XDIR_FstClus ) ; obj -> objsize = ld_qword ( fs -> dirbuf + XDIR_FileSize ) ; obj -> stat = fs -> dirbuf [ XDIR_GenFlags ] & 2 ; obj -> n_frag = 0 ; }
exFAT: Initialize object allocation info with loaded entry block
exFAT : Initialize object allocation info with loaded entry block
/* Filesystem object */ /* Object allocation information to be initialized */ /* Start cluster */ /* Size */ /* Allocation status */ /* No last fragment info */