char line[4096];
char filebuf;
I'm currently working on a STM32746G and I've managed to read a BMP file from a SD-card. The bytes are put into line[4096]
and I want to copy the elements in line
to filebuf
. The problem is that I want filebuf
to be exactly as big as the amount of elements line
contains.
This is because some BMP files might be bigger.
The current BMP file I'm using is only 715 bytes, which means about 3000 bytes are useless data.
Anyone knows how to solve my problem?