Home
last modified time | relevance | path

Searched refs:str (Results 1 – 25 of 97) sorted by relevance

1234

/picolibc-3.7.0-3.6.0/newlib/libc/machine/riscv/
Dstrlen.c15 size_t strlen(const char *str) in strlen() argument
17 const char *start = str; in strlen()
20 while (*str++) in strlen()
22 return str - start - 1; in strlen()
24 if (__builtin_expect ((uintptr_t)str & (sizeof (long) - 1), 0)) do in strlen()
26 char ch = *str; in strlen()
27 str++; in strlen()
29 return str - start - 1; in strlen()
30 } while ((uintptr_t)str & (sizeof (long) - 1)); in strlen()
32 unsigned long *ls = (unsigned long *)str; in strlen()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/machine/microblaze/
Dstrlen.c81 strlen (const char *str) in strlen() argument
87 const char *start = str; in strlen()
89 while (*str) in strlen()
90 str++; in strlen()
92 return str - start; in strlen()
94 const char *start = str; in strlen()
97 if (!UNALIGNED (str)) in strlen()
101 aligned_addr = (unsigned long*)str; in strlen()
107 str = (char*)aligned_addr; in strlen()
110 while (*str) in strlen()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/stdlib/
Dutoa.c33 char *str, in __utoa() argument
44 str[0] = '\0'; in __utoa()
53 str[i++] = digits[remainder]; in __utoa()
56 str[i] = '\0'; in __utoa()
61 c = str[j]; in __utoa()
62 str[j] = str[i]; in __utoa()
63 str[i] = c; in __utoa()
66 return str; in __utoa()
71 char *str, in utoa() argument
74 return __utoa (value, str, base); in utoa()
Ditoa.c35 char *str, in __itoa() argument
44 str[0] = '\0'; in __itoa()
52 str[i++] = '-'; in __itoa()
58 __utoa (uvalue, &str[i], base); in __itoa()
59 return str; in __itoa()
64 char *str, in itoa() argument
67 return __itoa (value, str, base); in itoa()
/picolibc-3.7.0-3.6.0/newlib/libc/string/
Dstrlen.c69 strlen (const char *str) in strlen() argument
71 const char *start = str; in strlen()
78 while (UNALIGNED (str)) in strlen()
80 if (!*str) in strlen()
81 return str - start; in strlen()
82 str++; in strlen()
87 aligned_addr = (unsigned long *)str; in strlen()
93 str = (char *) aligned_addr; in strlen()
97 while (*str) in strlen()
98 str++; in strlen()
[all …]
Dstrnlen.c34 strnlen (const char *str, in strnlen() argument
37 const char *start = str; in strnlen()
39 while (n-- > 0 && *str) in strnlen()
40 str++; in strnlen()
42 return str - start; in strnlen()
Dstrndup.c11 strndup (const char *str, in strndup() argument
14 const char *ptr = str; in strndup()
21 len = ptr - str; in strndup()
26 memcpy (copy, str, len); in strndup()
Dstrdup.c10 strdup (const char *str) in strdup() argument
12 size_t len = strlen (str) + 1; in strdup()
16 memcpy (copy, str, len); in strdup()
Dwcsdup.c41 wcsdup (const wchar_t *str) in wcsdup() argument
43 size_t len = wcslen (str) + 1; in wcsdup()
46 wmemcpy (copy, str, len); in wcsdup()
/picolibc-3.7.0-3.6.0/newlib/libc/include/ssp/
Dstdio.h54 #define sprintf(str, ...) \ argument
55 __builtin___sprintf_chk(str, 0, __ssp_bos(str), __VA_ARGS__)
57 #define vsprintf(str, fmt, ap) \ argument
58 __builtin___vsprintf_chk(str, 0, __ssp_bos(str), fmt, ap)
60 #define snprintf(str, len, ...) \ argument
61 __builtin___snprintf_chk(str, len, 0, __ssp_bos(str), __VA_ARGS__)
63 #define vsnprintf(str, len, fmt, ap) \ argument
64 __builtin___vsnprintf_chk(str, len, 0, __ssp_bos(str), fmt, ap)
66 #define gets(str) \ argument
67 __gets_chk(str, __ssp_bos(str))
/picolibc-3.7.0-3.6.0/test/
Dprintf_scanf.c130 check_vsnprintf(char *str, size_t size, const char *format, ...) in check_vsnprintf() argument
136 i = vsnprintf(str, size, format, ap); in check_vsnprintf()
147 const wchar_t *str; member
151 { .str = L"foo\n", .fmt = L"foo\nbar", .expect = -1 },
152 { .str = L"foo\n", .fmt = L"foo bar", .expect = -1 },
153 { .str = L"foo\n", .fmt = L"foo %d", .expect = -1 },
154 { .str = L"foo\n", .fmt = L"foo\n%d", .expect = -1 },
155 { .str = L"foon", .fmt = L"foonbar", .expect = -1 },
156 { .str = L"foon", .fmt = L"foon%d", .expect = -1 },
157 { .str = L"foo ", .fmt = L"foo bar", .expect = -1 },
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/signal/
Dsig2str.c193 sig2str(int signum, char *str) in sig2str() argument
202 sprintf(str, "RTMIN+%d", (signum-SIGRTMIN)); in sig2str()
210 sprintf(str, "RTMAX-%d", (SIGRTMAX - signum)); in sig2str()
219 strcpy(str, sptr->sig_name); in sig2str()
229 str2sig(const char *__restrict str, int *__restrict pnum) in str2sig() argument
242 if (strncmp(str, "RTMIN+", SPACES_TO_N) == 0) { in str2sig()
243 unsigned long j = strtoul(&str[SPACES_TO_N], &endp, 10); in str2sig()
259 if (strncmp(str, "RTMAX-", SPACES_TO_N) == 0) { in str2sig()
260 unsigned long j = strtoul(&str[SPACES_TO_N], &endp, 10); // and endptr null check in str2sig()
278 if (strcmp(sptr->sig_name, str) == 0) { in str2sig()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/stdio/
Dssputs.c19 unsigned char *str; in __ssputs() local
34 str = (unsigned char *)malloc (newsize); in __ssputs()
35 if (!str) in __ssputs()
37 memcpy (str, fp->_bf._base, curpos); in __ssputs()
42 str = (unsigned char *)realloc (fp->_bf._base, in __ssputs()
44 if (!str) { in __ssputs()
50 fp->_bf._base = str; in __ssputs()
51 fp->_p = str + curpos; in __ssputs()
Dnano-vfprintf.c185 unsigned char *str; in _ssputs() local
200 str = (unsigned char *)malloc (newsize); in _ssputs()
201 if (!str) in _ssputs()
206 memcpy (str, fp->_bf._base, curpos); in _ssputs()
211 str = (unsigned char *)realloc (fp->_bf._base, newsize); in _ssputs()
212 if (!str) in _ssputs()
221 fp->_bf._base = str; in _ssputs()
222 fp->_p = str + curpos; in _ssputs()
274 unsigned char *str; in _ssprint() local
290 str = (unsigned char *)malloc (newsize); in _ssprint()
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/argz/
Dbuf_findstr.c17 _buf_findstr(const char *str, char **buf, size_t *buf_len) in _buf_findstr() argument
24 if (str[0] == (*buf)[i]) in _buf_findstr()
27 while (str[j - i] && (str[j - i] == (*buf)[j])) j++; in _buf_findstr()
28 if(str[j - i] == '\0') in _buf_findstr()
Dargz_add.c16 const char *str) in argz_add() argument
21 if (str == NULL) in argz_add()
24 len_to_add = strlen(str) + 1; in argz_add()
30 memcpy(*argz + last, str, len_to_add); in argz_add()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/mips/
Dstrlen.c25 strlen (const char *str) in strlen() argument
27 const char *start = str; in strlen()
29 while (*str++ != '\0') in strlen()
32 return str - start - 1; in strlen()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/aarch64/
Dmemset.S42 str val, [dstin]
43 str val, [dstend, -8]
47 str valw, [dstin]
48 str valw, [dstend, -4]
58 str q0, [dstin]
60 str q0, [dstend, -16]
62 str q0, [dstin, 16]
63 str q0, [dstend, -32]
70 str q0, [dstin, 16]
79 str q0, [dstin]
[all …]
/picolibc-3.7.0-3.6.0/newlib/libc/iconv/lib/
Daliasesi.c51 const char *str) in canonical_form() argument
55 if (str == NULL || (p = p1 = strdup (str)) == NULL) in canonical_form()
58 for (; *str; str++, p++) in canonical_form()
60 if (*str == '-') in canonical_form()
63 *p = tolower (*str); in canonical_form()
/picolibc-3.7.0-3.6.0/newlib/libc/tinystdio/
Dgets.c35 gets(char *str) in gets() argument
37 char *cp = str; in gets()
43 if (ferror(stdin) || cp == str) in gets()
48 return str; in gets()
/picolibc-3.7.0-3.6.0/newlib/libc/ssp/
Dgets_chk.c44 __gets_chk(char * __restrict str, size_t slen) in __gets_chk() argument
46 char *cp = str; in __gets_chk()
52 if (ferror(stdin) || cp == str) in __gets_chk()
59 return str; in __gets_chk()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/spu/
Dvsprintf.c44 char *str; member
54 vsprintf (char *__restrict str, in vsprintf() argument
62 args.str = str; in vsprintf()
Dvsscanf.c46 const char *str; member
56 vsscanf (const char *__restrict str, in vsscanf() argument
64 args.str = str; in vsscanf()
Dvsnprintf.c43 char* str; member
55 vsnprintf (char *__restrict str, in vsnprintf() argument
64 args.str = str; in vsnprintf()
/picolibc-3.7.0-3.6.0/newlib/libc/machine/m68k/
Dstrlen.c36 strlen (const char *str) in strlen() argument
39 const char *cp = str; in strlen()
50 return (cp - str) - 1; in strlen()

1234