From 169824df9b9d2cf2ef392506963ece888a7821eb Mon Sep 17 00:00:00 2001 From: Sterling Hughes Date: Sun, 12 Mar 2000 18:42:52 +0000 Subject: [PATCH] Added ftruncate. git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@21408 c90b9560-bf6c-de11-be94-00142212c4b1 --- functions/filesystem.xml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/functions/filesystem.xml b/functions/filesystem.xml index 5fdca74258..36695124e2 100644 --- a/functions/filesystem.xml +++ b/functions/filesystem.xml @@ -1220,6 +1220,27 @@ fclose ($fd); + + + ftruncate + + Truncate a file to a given length. + + + + Description + + int ftruncate + int fp + int size + + + Takes the filepointer, fp, and truncates the file to length, size. + This function returns true on success and false on failure. + + + + fwrite