bugGNU Octave - Bugs: bug #41517, Add an ftruncate function to...

 
 

bug #41517: Add an ftruncate function to complement existing C-style I/O

Submitter:  Mike Miller <mtmiller>
Submitted:  Sat 08 Feb 2014 10:51:02 PM UTC
   
 
Category:  Octave Function Severity:  1 - Wish
Priority:  5 - Normal Item Group:  Feature Request
Status:  None Assigned to:  None
Originator Name:  Open/Closed:  * Open
Release:  * dev Operating System:  * Any
Fixed Release:  None Planned Release:  None
* Mandatory Fields

Post a Comment

Add a New Comment Rich Markup
   

Discussion

Wed 14 Mar 2018 07:45:15 AM UTC, comment #1: 

As mentioned in the duplicate bug #53337, IMO an alternative to an explicit ftruncate() can also be adding a dedicated output arg to fclose()

Philip Nienhuis <philipnienhuis>
Group Member
Sat 08 Feb 2014 10:51:02 PM UTC, original submission:  

Many C standard library I/O functions are available in the Octave shell, but ftruncate is not one of them. There is no such Matlab function, but this might be a nice addition to the I/O builtins.

The ftruncate function is provided by gnulib so implementing this should be an easy wrapper. Might be a nice project for a beginner?

See this thread: http://octave.159 ... it-td4661758.html

Mike Miller <mtmiller>
Group Member

 

Attached Files

This item currently has no attached files.

(Note: upload size limit is set to 4.0MiB, after insertion of the required escape characters.)

Attach Files:
   
   
Comment:
   

 

Dependencies

This item does not depend on any other items.

No items depend on this one.

 

Mail Notification Carbon-Copy List

 

Votes

There are 0 votes so far. Votes easily highlight which items people would like to see resolved in priority, independently of the priority of the item set by tracker managers.

Only group members can vote.

 

History

Follows 1 latest change.

Date Changed by Updated Field Previous Value => Replaced by
2019-02-26 mtmiller Carbon-CopyRemoved 80942 -

Back to the top

Powered by Savane 3.16-ed84.
Corresponding source code