======**int sqFTruncate(filenum, fileoffset)**====== **Parms**: filenum file number fileoffset file byte offset to truncate to. **return**: 0 if ok. non-zero to fail the primitive call. **From**: Interpreter, file plugin **Why**: To truncate the file, this removes bytes from the end, or extends the file depending on the meaning of truncate in the file system. **Responsibility**: /* Macro to provide default null behaviour for ftruncate - a non-ansi call used in FilePlugin. Override in sqPlatformSpecific.h for each platform that implements a file truncate, or consider replacing the ../Cross/plugins/FilePlugin/sqFilePluginBasicPrims.c file with a platform specific version as Win32 and RISC OS do. */ By default it is defined as #define sqFTruncate(filenum, fileoffset) true **MacIntosh** //os-9/OSXCarbon// #define sqFTruncate(f,o) ftruncate(fileno(f), o) //Cocoa:// See iPhone **iPhone** #define sqFTruncate(f,o) ftruncate(fileno(f), o) **Unix** #define sqFTruncate(f,o) ftruncate(fileno(f), o) **Windows** ??? It's unclear I think it inherits the #define sqFTruncate(filenum, fileoffset) true **BUGS** Does Windows support sqFTruncate???