hare

[hare] The Hare programming language
git clone https://git.torresjrjr.com/hare.git
Log | Files | Refs | README | LICENSE

trunc.ha (175B)


      1 // License: MPL-2.0
      2 
      3 // Truncate a file to a specified length. The file must be open for writing.
      4 export fn trunc(fd: file, ln: size) (void | error) = platform_trunc(fd, ln);