‫In this lecture, we're going to implement the F seek functionality, the F seek functionality will
‫allow us to seek to any points in a file changing where the file pointer is pointing to in the file.
‫This way we can f read from bytes 300.
‫For example, please see the F seek manual in C.
‫For more information, we're now going to implement this function.
‫So just go in it f seek and it F.T. in its offset file seek mode Wendt's and now we're going to go and
‫address equals zero struct file descriptor descriptor equals file get descriptor F.T..
‫If the descriptors null then they've passed us an invalid file handle and we'll just return minus here
‫and we'll go to our make the old label here return address.
‫And now we're going to go sequel's to script file system.
‫And we're going to go seek we haven't created seek yet and we're just going to go to script private
‫offset and when it's OK, let's scroll up and implement the seek points.
‫So the very top in foldout Hajj.
‫So we're just going to go typedef in it f seek function
‫void's private unit 32 to offset Fousek seek, mode's seek out and now just by here we're going to go
‫f f seek function seek.
‫So that's in the file system implementation here.
‫OK, and now if we scroll down and we're just going to put F.C. in the Father Chheda file.
‫So just above F right here will be fine.
‫Just paste that in there.
‫The actual prototype.
‫And that should be absolutely fine if we now make clean and then build that S.H., we can see that compares
‫perfectly.
‫So we've just implemented the VFW's seek functionality.
‫What this will do is very simple.
‫It will call the seek function on file system for the file handle.
‫It's as simple as that.
‫On the next lecture we will implement the Fat 16 seek function, which will change the actual structure.
‫Variable.
‫Position here file descriptor to whatever value they provided.
‫So that's what that's going to do.
‫So see you on the next lecture.