#include #include int main(void){ if(truncate("./test/test1", 256) < 0) { printf("truncate error for file test1\n"); } return 0; }