Hello
Looking at file:
C:\ProgramFiles\Freescale\Freescale MQX 3.6\shell\source\mfs\sh_write.c
I founf these lines
// generate data to buf
for (i = 0, c = '0', bi = 0; i < count;i++) {
buf[bi++] = c;
if (bi > SHELL_BLOCK_SIZE - 1) {
write(fd, buf, SHELL_BLOCK_SIZE);
bi = 0;
}
if (c == 'z')
c='0';
else
c++;
}
third parameter(offset) is not taken into account when data is generate. After figuring out this code , command "write" could be inproved by user. It is important that any addition you come up with to keep function reentrance feature.
Thanks.