|
-
Dec 16th, 2002, 05:07 PM
#1
Thread Starter
New Member
pseudo code
can anyone help me to write pseudo code a kernel fuction called trunc(), which will produce a file of a given number of bytes. expanding or truncating the file as necessary.
-
Dec 16th, 2002, 06:00 PM
#2
I fear not with what you've given us. This function would have to access the file system, that's the non-trivial part of the function. But what filesystem does your OS (I assume it's your own OS) use, how does this system work?
If it's FAT or another established format I'm sure you'll find something on the net.
All the buzzt
 CornedBee
"Writing specifications is like writing a novel. Writing code is like writing poetry."
- Anonymous, published by Raymond Chen
Don't PM me with your problems, I scan most of the forums daily. If you do PM me, I will not answer your question.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|