Add fseek()

git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@613 42af7a65-404d-4744-a932-0658087f49c3
This commit is contained in:
patacongo
2008-02-01 22:32:16 +00:00
parent 09af7cf6ce
commit 2f1acf6786
6 changed files with 129 additions and 34 deletions
+1
View File
@@ -93,6 +93,7 @@ static ssize_t hello_read(struct file *filp, char *buffer, size_t len)
nread = hello_pex_len - offset;
}
memcpy(buffer, &hello_pex[offset], nread);
filep->f_pos += nread;
}
return nread;
}