Which of the following system call is used for truncating a file?
(a) truncate
(b) ftruncate
(c) trunk
(d) truncate and ftruncate
I had been asked this question by my school principal while I was bunking the class.
My question is taken from System Calls Basics topic in portion System Programming I – Files of Unix