summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_fread.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-01 22:32:16 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2008-02-01 22:32:16 +0000
commit7a67f1634cf5ee06b87d90c16f68543f12e6349c (patch)
tree3eb8b5d2d7853ab10d752326806c2fcfa43862e4 /nuttx/lib/lib_fread.c
parent51f96a502ea130e3d83eff679b560608a8246a75 (diff)
downloadpx4-nuttx-7a67f1634cf5ee06b87d90c16f68543f12e6349c.tar.gz
px4-nuttx-7a67f1634cf5ee06b87d90c16f68543f12e6349c.tar.bz2
px4-nuttx-7a67f1634cf5ee06b87d90c16f68543f12e6349c.zip
Add fseek()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@613 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_fread.c')
-rw-r--r--nuttx/lib/lib_fread.c57
1 files changed, 29 insertions, 28 deletions
diff --git a/nuttx/lib/lib_fread.c b/nuttx/lib/lib_fread.c
index 61e3daa5f..361385bba 100644
--- a/nuttx/lib/lib_fread.c
+++ b/nuttx/lib/lib_fread.c
@@ -1,7 +1,7 @@
-/************************************************************
- * lib_fread.c
+/****************************************************************************
+ * lib/lib_fread.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2008 Gregory Nutt. All rights reserved.
* Author: Gregory Nutt <spudmonkey@racsa.co.cr>
*
* Redistribution and use in source and binary forms, with or without
@@ -14,7 +14,7 @@
* notice, this list of conditions and the following disclaimer in
* the documentation and/or other materials provided with the
* distribution.
- * 3. Neither the name Gregory Nutt nor the names of its contributors may be
+ * 3. Neither the name NuttX nor the names of its contributors may be
* used to endorse or promote products derived from this software
* without specific prior written permission.
*
@@ -31,53 +31,54 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Compilation Switches
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Included Files
- ************************************************************/
+ ****************************************************************************/
#include <stdio.h>
#include "lib_internal.h"
-/************************************************************
+/****************************************************************************
* Definitions
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Private Type Declarations
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Private Function Prototypes
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Global Constant Data
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Global Variables
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Private Constant Data
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
+/****************************************************************************
* Private Variables
- ************************************************************/
-/************************************************************
+ ****************************************************************************/
+
+/****************************************************************************
* Global Functions
- ************************************************************/
+ ****************************************************************************/
-/************************************************************
- * fwrite
- ************************************************************/
+/****************************************************************************
+ * Name: fwrite
+ ****************************************************************************/
size_t fread(void *ptr, size_t size, size_t n_items, FILE *stream)
{