void *memcpy(void *, CONST void *, size_t);
кусок из файла mmc.c // FatFs - FAT file system module R0.07 ©ChaN, 2009
FRESULT f_write ( FIL *fp, /* Pointer to the file object */ const void *buff, /* Pointer to the data to be written */ UINT btw, /* Number of bytes to write */ UINT *bw /* Pointer to number of bytes written */ ) { FRESULT res; DWORD clst, sect; UINT wcnt, cc; const BYTE *wbuff = buff;
вызываем MemCpy(&fp->fs->win[fp->fptr % SS(fp->fs)], wbuff, wcnt); /* Fit partial sector */
..... }
выходит ошибка : type error in argument 2 to `memcpy'; found `pointer to const unsigned char' expected `pointer to void'
я не очень силен в С подскажите что ни так ?
|