summaryrefslogtreecommitdiff
path: root/nuttx/libc/string/lib_strstr.c
diff options
context:
space:
mode:
authorGregory Nutt <gnutt@nuttx.org>2014-01-10 15:23:26 -0600
committerGregory Nutt <gnutt@nuttx.org>2014-01-10 15:23:26 -0600
commite1de0b9e18e8224a156a16a9ec43ae4441f11f81 (patch)
tree337030e19ae0016bb1aa68149b8b6bf456cd7c30 /nuttx/libc/string/lib_strstr.c
parent50bc19ba9a0985ceccc988a2bb7961d23f60cd49 (diff)
downloadpx4-nuttx-e1de0b9e18e8224a156a16a9ec43ae4441f11f81.tar.gz
px4-nuttx-e1de0b9e18e8224a156a16a9ec43ae4441f11f81.tar.bz2
px4-nuttx-e1de0b9e18e8224a156a16a9ec43ae4441f11f81.zip
NSH: Separate command line parsing from command execution. Add support for multiple, semicolone separated commands on each line
Diffstat (limited to 'nuttx/libc/string/lib_strstr.c')
-rw-r--r--nuttx/libc/string/lib_strstr.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/nuttx/libc/string/lib_strstr.c b/nuttx/libc/string/lib_strstr.c
index 7a60a680d..0c695f7de 100644
--- a/nuttx/libc/string/lib_strstr.c
+++ b/nuttx/libc/string/lib_strstr.c
@@ -45,11 +45,11 @@
* Global Functions
****************************************************************************/
-char *strstr(const char *str, const char *substr)
+FAR char *strstr(FAR const char *str, FAR const char *substr)
{
- const char *candidate; /* Candidate in str with matching start character */
- char ch; /* First character of the substring */
- int len; /* The length of the substring */
+ FAR const char *candidate; /* Candidate in str with matching start character */
+ char ch; /* First character of the substring */
+ int len; /* The length of the substring */
/* Special case the empty substring */