14 lines
174 B
C
14 lines
174 B
C
#include <unistd.h>
|
|
#include <stdio.h>
|
|
|
|
int main(void) {
|
|
int ret;
|
|
|
|
ret = truncate("./pirate.txt", 45);
|
|
if (ret == -1) {
|
|
perror("truncate");
|
|
return -1;
|
|
}
|
|
return 0;
|
|
}
|