libc/string: Fix the minor style issue

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
This commit is contained in:
Xiang Xiao 2022-04-04 03:22:29 +08:00 committed by Petro Karashchenko
parent 9785d6606c
commit 34e17ba0ce
3 changed files with 5 additions and 11 deletions

View File

@ -32,11 +32,11 @@
#ifndef CONFIG_ARCH_STRCAT
#undef strcat /* See mm/README.txt */
char *strcat(char *dest, const char *src)
FAR char *strcat(FAR char *dest, FAR const char *src)
{
char *ret = dest;
FAR char *ret = dest;
dest += strlen(dest);
dest += strlen(dest);
while (*src != '\0')
{
*dest++ = *src++;

View File

@ -77,8 +77,8 @@
FAR char *strtok_r(FAR char *str, FAR const char *delim, FAR char **saveptr)
{
char *pbegin;
char *pend = NULL;
FAR char *pbegin;
FAR char *pend = NULL;
/* Decide if we are starting a new string or continuing from
* the point we left off.

View File

@ -51,12 +51,6 @@
*
****************************************************************************/
/****************************************************************************
* Configuration definitions.
****************************************************************************/
#define CONFIG_MEMCPY_INDEXED_COPY
/****************************************************************************
* Included Files
****************************************************************************/