TizenRT Libs&Environment  v2.0 M2

Provides APIs for String. More...

Collaboration diagram for STRING:

Files

file  string.h
 String APIs.
 

Macros

#define bzero(s, n)   (void)memset(s, 0, n)
 
#define bcopy(b1, b2, len)   (void)memmove(b2, b1, len)
 
#define EXTERN   extern
 

Functions

FAR char * strdup (FAR const char *s)
 duplicate a specific number of bytes from a string More...
 
FAR char * strndup (FAR const char *s, size_t size)
 duplicate a specific number of bytes from a string More...
 
FAR const char * strerror (int)
 get error message string More...
 
size_t strlen (FAR const char *)
 get length of fixed size string More...
 
size_t strnlen (FAR const char *, size_t)
 get length of fixed size string More...
 
FAR char * strcat (FAR char *, FAR const char *)
 concatenate two strings More...
 
FAR char * strncat (FAR char *, FAR const char *, size_t)
 concatenate a string with part of another More...
 
int strcmp (FAR const char *, FAR const char *)
 compare two strings More...
 
int strncmp (FAR const char *, FAR const char *, size_t)
 compare part of two strings More...
 
int strcasecmp (FAR const char *, FAR const char *)
 case-insensitive string comparisons More...
 
int strncasecmp (FAR const char *, FAR const char *, size_t)
 case-insensitive string comparisons More...
 
FAR char * strcpy (char *dest, FAR const char *src)
 copy a string and return a pointer to the end of the result More...
 
FAR char * stpcpy (FAR char *dest, FAR const char *src)
 copy a string and return a pointer to the end of the result More...
 
FAR char * strncpy (FAR char *, FAR const char *, size_t)
 copy fixed length string, returning a pointer to the array end More...
 
FAR char * strpbrk (FAR const char *, FAR const char *)
 scan a string for a byte More...
 
FAR char * strchr (FAR const char *s, int c)
 string scanning operation More...
 
FAR char * strrchr (FAR const char *s, int c)
 string scanning operation More...
 
size_t strspn (FAR const char *, FAR const char *)
 get length of a substring More...
 
size_t strcspn (FAR const char *, FAR const char *)
 get the length of a complementary substring More...
 
FAR char * strstr (FAR const char *, FAR const char *)
 find a substring More...
 
FAR char * strcasestr (FAR const char *, FAR const char *)
 locate a substring More...
 
FAR char * strtok (FAR char *, FAR const char *)
 split string into tokens More...
 
FAR char * strtok_r (FAR char *, FAR const char *, FAR char **)
 split string into tokens More...
 
FAR void * memchr (FAR const void *s, int c, size_t n)
 find byte in memory More...
 
FAR void * memccpy (FAR void *s1, FAR const void *s2, int c, size_t n)
 copy bytes in memory More...
 
int memcmp (FAR const void *s1, FAR const void *s2, size_t n)
 compare bytes in memory More...
 
FAR void * memcpy (FAR void *dest, FAR const void *src, size_t n)
 copy bytes in memory More...
 
FAR void * memmove (FAR void *dest, FAR const void *src, size_t count)
 copy bytes in memory with overlapping areas More...
 
FAR void * memset (FAR void *s, int c, size_t n)
 set bytes in memory More...
 
size_t strlcpy (char *__restrict dest, const char *__restrict src, size_t size)
 Copies up to size - 1 characters from the NUL-terminated string src to dst, NUL-terminating the result. More...
 

Detailed Description

Provides APIs for String.

Macro Definition Documentation

#define bcopy (   b1,
  b2,
  len 
)    (void)memmove(b2, b1, len)

Definition at line 83 of file string.h.

#define bzero (   s,
 
)    (void)memset(s, 0, n)

Definition at line 80 of file string.h.

#define EXTERN   extern

Definition at line 94 of file string.h.

Function Documentation

FAR void* memccpy ( FAR void *  s1,
FAR const void *  s2,
int  c,
size_t  n 
)

copy bytes in memory

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR void* memchr ( FAR const void *  s,
int  c,
size_t  n 
)

find byte in memory

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
int memcmp ( FAR const void *  s1,
FAR const void *  s2,
size_t  n 
)

compare bytes in memory

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR void* memcpy ( FAR void *  dest,
FAR const void *  src,
size_t  n 
)

copy bytes in memory

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR void* memmove ( FAR void *  dest,
FAR const void *  src,
size_t  count 
)

copy bytes in memory with overlapping areas

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR void* memset ( FAR void *  s,
int  c,
size_t  n 
)

set bytes in memory

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* stpcpy ( FAR char *  dest,
FAR const char *  src 
)

copy a string and return a pointer to the end of the result

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
int strcasecmp ( FAR const char *  ,
FAR const char *   
)

case-insensitive string comparisons

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strcasestr ( FAR const char *  ,
FAR const char *   
)

locate a substring

#include <string.h>

Parameters
[in]strsrc string
[in]substrsubstring
Since
TizenRT v1.0
FAR char* strcat ( FAR char *  ,
FAR const char *   
)

concatenate two strings

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strchr ( FAR const char *  s,
int  c 
)

string scanning operation

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
int strcmp ( FAR const char *  ,
FAR const char *   
)

compare two strings

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strcpy ( char *  dest,
FAR const char *  src 
)

copy a string and return a pointer to the end of the result

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
size_t strcspn ( FAR const char *  ,
FAR const char *   
)

get the length of a complementary substring

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strdup ( FAR const char *  s)

duplicate a specific number of bytes from a string

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR const char* strerror ( int  )

get error message string

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
size_t strlcpy ( char *__restrict  dest,
const char *__restrict  src,
size_t  size 
)

Copies up to size - 1 characters from the NUL-terminated string src to dst, NUL-terminating the result.

#include <string.h>

Parameters
[in]destA pointer to the destination string.
[in]srcA pointer to the source string.
[in]sizeThe size of the destination buffer.
Returns
Total length of the string they tried to create.
Since
TizenRT v1.0
size_t strlen ( FAR const char *  )

get length of fixed size string

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
int strncasecmp ( FAR const char *  ,
FAR const char *  ,
size_t   
)

case-insensitive string comparisons

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strncat ( FAR char *  ,
FAR const char *  ,
size_t   
)

concatenate a string with part of another

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
int strncmp ( FAR const char *  ,
FAR const char *  ,
size_t   
)

compare part of two strings

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strncpy ( FAR char *  ,
FAR const char *  ,
size_t   
)

copy fixed length string, returning a pointer to the array end

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strndup ( FAR const char *  s,
size_t  size 
)

duplicate a specific number of bytes from a string

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
size_t strnlen ( FAR const char *  ,
size_t   
)

get length of fixed size string

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strpbrk ( FAR const char *  ,
FAR const char *   
)

scan a string for a byte

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strrchr ( FAR const char *  s,
int  c 
)

string scanning operation

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
size_t strspn ( FAR const char *  ,
FAR const char *   
)

get length of a substring

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strstr ( FAR const char *  ,
FAR const char *   
)

find a substring

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strtok ( FAR char *  ,
FAR const char *   
)

split string into tokens

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0
FAR char* strtok_r ( FAR char *  ,
FAR const char *  ,
FAR char **   
)

split string into tokens

#include <string.h>
POSIX API (refer to : http://pubs.opengroup.org/onlinepubs/9699919799/)

Since
TizenRT v1.0