Another simple question
    Ed Sutter 
    esutter at lucent.com
       
    Mon Nov  1 19:26:33 UTC 2004
    
    
  
Etienne Fortin wrote:
> It may seem like a newbie question, but how can I redim a file? I mean,
> let's say my file is 12000 bytes and I want to truncate it to 11500
> bytes, how to scrap the 500 last bytes without having to create a new
> file and copy only 11500 bytes to it? Is there a way with std C?
> 
> Etienne Fortin
> Sensio
> 
Etienne,
Not sure if they're in RTEMS, but generally speaking the functions
truncate() and ftruncate() do this for you.
Ed
    
    
More information about the users
mailing list