summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_strrchr.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 20:51:11 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-12-14 20:51:11 +0000
commit33d20a1c87eb7cae586cc0d444729eda6c46e723 (patch)
tree8232edf97066c2d2c3afaf3fea3b51ff51f702cb /nuttx/lib/lib_strrchr.c
parent6260f872623acfe046f62a728405dbadc2a60c8c (diff)
downloadpx4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.tar.gz
px4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.tar.bz2
px4-nuttx-33d20a1c87eb7cae586cc0d444729eda6c46e723.zip
Switching to C99 stdint.h types
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@2338 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_strrchr.c')
-rw-r--r--nuttx/lib/lib_strrchr.c24
1 files changed, 10 insertions, 14 deletions
diff --git a/nuttx/lib/lib_strrchr.c b/nuttx/lib/lib_strrchr.c
index 70bc2be6f..fcec61efe 100644
--- a/nuttx/lib/lib_strrchr.c
+++ b/nuttx/lib/lib_strrchr.c
@@ -1,7 +1,7 @@
-/************************************************************
- * lib_strrchr.c
+/************************************************************************
+ * lib/lib_strrchr.c
*
- * Copyright (C) 2007 Gregory Nutt. All rights reserved.
+ * Copyright (C) 2007, 2009 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,23 +31,19 @@
* ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
* POSSIBILITY OF SUCH DAMAGE.
*
- ************************************************************/
+ ************************************************************************/
-/************************************************************
- * Compilation Switches
- ************************************************************/
-
-/************************************************************
+/************************************************************************
* Included Files
- ************************************************************/
+ ************************************************************************/
#include <nuttx/config.h>
-#include <sys/types.h>
+
#include <string.h>
-/************************************************************
+/************************************************************************
* Global Functions
- ************************************************************/
+ ************************************************************************/
/* The strrchr() function returns a pointer to the last
* occurrence of the character c in the string s.