<?php
include_once $_SERVER['DOCUMENT_ROOT'] . '/include/shared-manual.inc';
$TOC = array();
$TOC_DEPRECATED = array();
$PARENTS = array();
include_once dirname(__FILE__) ."/toc/ref.dio.inc";
$setup = array (
  'home' => 
  array (
    0 => 'index.php',
    1 => 'PHP Manual',
  ),
  'head' => 
  array (
    0 => 'UTF-8',
    1 => 'de',
  ),
  'this' => 
  array (
    0 => 'function.dio-truncate.php',
    1 => 'dio_truncate',
    2 => 'Schneidet eine Datei ab',
  ),
  'up' => 
  array (
    0 => 'ref.dio.php',
    1 => 'Direct-IO-Funktionen',
  ),
  'prev' => 
  array (
    0 => 'function.dio-tcsetattr.php',
    1 => 'dio_tcsetattr',
  ),
  'next' => 
  array (
    0 => 'function.dio-write.php',
    1 => 'dio_write',
  ),
  'alternatives' => 
  array (
  ),
  'source' => 
  array (
    'lang' => 'de',
    'path' => 'reference/dio/functions/dio-truncate.xml',
  ),
  'history' => 
  array (
  ),
);
$setup["toc"] = $TOC;
$setup["toc_deprecated"] = $TOC_DEPRECATED;
$setup["parents"] = $PARENTS;
manual_setup($setup);

contributors($setup);

?>
<div id="function.dio-truncate" class="refentry">
 <div class="refnamediv">
  <h1 class="refname">dio_truncate</h1>
  <p class="verinfo">(PHP 4 &gt;= 4.2.0, PHP 5 &lt; 5.1.0)</p><p class="refpurpose"><span class="refname">dio_truncate</span> &mdash; <span class="dc-title">Schneidet eine Datei ab</span></p>

 </div>
 <div class="refsect1 description" id="refsect1-function.dio-truncate-description">
  <h3 class="title">Beschreibung</h3>
  <div class="methodsynopsis dc-description">
   <span class="methodname"><strong>dio_truncate</strong></span>(<span class="methodparam"><span class="type"><a href="language.types.resource.php" class="type resource">resource</a></span> <code class="parameter">$fd</code></span>, <span class="methodparam"><span class="type"><a href="language.types.integer.php" class="type int">int</a></span> <code class="parameter">$offset</code></span>): <span class="type"><a href="language.types.boolean.php" class="type bool">bool</a></span></div>

  <p class="para rdfs-comment">
   <span class="function"><strong>dio_truncate()</strong></span> schneidet eine Datei nach maximal
   <code class="parameter">offset</code> ab.
  </p>
  <p class="para">
   War die Datei ursprünglich größer, so gehen die Daten verloren. War
   sie kleiner, ist nicht definiert, ob die Datei nicht geändert wird
   oder ob sie erweitert wird. Im letzteren Fall wird der erweiterte
   Teil mit Nullen aufgefüllt.
  </p>
 </div>

 <div class="refsect1 parameters" id="refsect1-function.dio-truncate-parameters">
  <h3 class="title">Parameter-Liste</h3>
  <p class="para">
   <dl>
    
     <dt><code class="parameter">fd</code></dt>
     <dd>
      <p class="para">
       Ein von <span class="function"><a href="function.dio-open.php" class="function">dio_open()</a></span> zurückgegebener Dateideskriptor.
      </p>
     </dd>
    
    
     <dt><code class="parameter">offset</code></dt>
     <dd>
      <p class="para">
       Der Offset in Bytes.
      </p>
     </dd>
    
   </dl>
  </p>
 </div>

 <div class="refsect1 returnvalues" id="refsect1-function.dio-truncate-returnvalues">
  <h3 class="title">Rückgabewerte</h3>
  <p class="para">
   Gibt bei Erfolg <strong><code><a href="reserved.constants.php#constant.true">true</a></code></strong> zurück. Bei einem Fehler wird <strong><code><a href="reserved.constants.php#constant.false">false</a></code></strong> zurückgegeben.
  </p>
 </div>


 <div class="refsect1 notes" id="refsect1-function.dio-truncate-notes">
  <h3 class="title">Anmerkungen</h3>
  <blockquote class="note"><p><strong class="note">Hinweis</strong>: <span class="simpara">Diese Funktion ist auf
Windows-Plattformen nicht verfügbar.</span></p></blockquote>
 </div>

</div><?php manual_footer($setup); ?>