PHP Function Table / Implementation & Documentation

_ a b c d e f g h i j k l m n o p q r s t u v w x y z    alphabetical    by extension    about    statistics

function ftruncate


Truncate a file to a given length.
this function is not available in the current (CVS) version of PHP3

in the current (CVS) version of PHP4, this function
is definend in php4/ext/standard/basic_functions.c
and implemented in php4/ext/standard/file.c

it is documented in filesystem.xml

a japanese translation is available

this function lacks a proto definition in latest PHP3 source

there is a proto in latest PHP4 source:
int ftruncate (int fp, int size)
Truncate file to 'size' length

PHP 3.0.*
01234567891
0
1
1
1
2
1
3
1
4
1
5
1
6
c
v
s
                  
 

 

PHP 4.0.*
0
b
1
0
b
2
0
b
4
0
R
C
1
0
R
C
2
0c
v
s
---xxxx


last update Die 23 Mai 2000 10:00:46 CEST

(c) 2000 Hartmut Holzgraefe