70/** The strdupl() function shall return a pointer to a new string,
71 * which is a duplicate of the string pointed to by s1. The returned pointer can be passed to free().
72 * A null pointer is returned if the new string cannot be created.
73 * strdupl are same than linux strdup, but this way we avoid to duplicate reference in linux
74 */
75char *strdupl(constchar *str);
76/** The strdup() function returns a pointer to a new string which is a duplicate of the string.
77 * Memory for the new string is obtained with malloc(3), and can be freed with free(3).
78 * The strndup() function is similar, but only copies at most n bytes. If s is longer than n,
79 * only n bytes are copied, and a terminating null byte ('\0') is added.
80 */
81char *strndupl(constchar *s, int n);
82/** strnlen - determine the length of a fixed-size string
83 * The strnlen() function returns the number of bytes in the string pointed to by s, excluding the terminating null bye ('\0'), but at most maxlen.
84 * In doing this, strnlen() looks only at the first maxlen bytes at s and never beyond s+maxlen.
85 * The strnlen() function returns strlen(s), if that is less than maxlen, or maxlen if there is no null byte ('\0')
86 * among the first maxlen bytes pointed to by s.
87 */
88int strnlen_(constchar *s, int n);
89/** strnicmp compares a and b without sensitivity to case.
90 * All alphabetic characters in the two arguments a and b are converted to lowercase before the comparison.
91 */
92int strnicmp_(charconst *a, charconst *b, int n);
93
94#ifdef __cplusplus
95 }
96#endif
97#endif
98
Important Information for this Arm website
This site uses cookies to store information on your computer.
By continuing to use our site, you consent to our cookies.
If you are not happy with the use of these cookies, please review our
Cookie Policy
to learn how they can be disabled.
By disabling cookies, some features of the site will not work.