summaryrefslogtreecommitdiff
path: root/nuttx/lib/lib_strchr.c
diff options
context:
space:
mode:
authorpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-18 20:11:11 +0000
committerpatacongo <patacongo@42af7a65-404d-4744-a932-0658087f49c3>2009-07-18 20:11:11 +0000
commit254321e61b0299f2247131f1a331b6b39d13cd93 (patch)
treef7af516612ff86c4a5c87ea0799760e35a82bec7 /nuttx/lib/lib_strchr.c
parenta06a3e444b1f53f34ad78067e68f06cc040ebe31 (diff)
downloadpx4-nuttx-254321e61b0299f2247131f1a331b6b39d13cd93.tar.gz
px4-nuttx-254321e61b0299f2247131f1a331b6b39d13cd93.tar.bz2
px4-nuttx-254321e61b0299f2247131f1a331b6b39d13cd93.zip
Add strstr()
git-svn-id: svn://svn.code.sf.net/p/nuttx/code/trunk@1990 42af7a65-404d-4744-a932-0658087f49c3
Diffstat (limited to 'nuttx/lib/lib_strchr.c')
-rw-r--r--nuttx/lib/lib_strchr.c22
1 files changed, 9 insertions, 13 deletions
diff --git a/nuttx/lib/lib_strchr.c b/nuttx/lib/lib_strchr.c
index 5b3426dbb..ff7c6197a 100644
--- a/nuttx/lib/lib_strchr.c
+++ b/nuttx/lib/lib_strchr.c
@@ -1,7 +1,7 @@
-/************************************************************
- * lib_strchr.c
+/****************************************************************************
+ * lib/lib_strchr.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 strchr() function returns a pointer to the first
* occurrence of the character c in the string s.