9 char buffer[256 + 512];
10 dword len, pos, extra, blks;
15 if(file == NULL || len > 256)
22 memset(buffer + len, 0,
sizeof(buffer) - len);
24 pos = TAP_Hdd_Ftell(file);
25 extra = 512 - ((pos + len) % 512);
27 if(extra == 512) extra = 0;
29 if((blks = TAP_Hdd_Fwrite(buffer, len + extra, 1, file)) != 1)
36 ret = (TAP_Hdd_Fseek(file, pos,
SEEK_SET) == pos);
bool HDD_FappendWrite(TYPE_File *file, const char *data)