Results 1 to 2 of 2

Thread: pseudo code

  1. #1

    Thread Starter
    New Member
    Join Date
    Dec 2002
    Posts
    5

    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.

  2. #2
    Kitten CornedBee's Avatar
    Join Date
    Aug 2001
    Location
    In a microchip!
    Posts
    11,594
    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
  •  



Click Here to Expand Forum to Full Width