/external/bison/lib/ |
strnlen1.c | 1 /* Find the length of STRING + 1, but scan at most MAXLEN bytes. 24 /* Find the length of STRING + 1, but scan at most MAXLEN bytes. 25 If no '\0' terminator is found in that many characters, return MAXLEN. */ 26 /* This is the same as strnlen (string, maxlen - 1) + 1. */ 28 strnlen1 (const char *string, size_t maxlen) 30 const char *end = (const char *) memchr (string, '\0', maxlen); 34 return maxlen;
|
strnlen.c | 1 /* Find the length of STRING, but scan at most MAXLEN characters. 22 /* Find the length of STRING, but scan at most MAXLEN characters. 23 If no '\0' terminator is found in that many characters, return MAXLEN. */ 26 strnlen (const char *string, size_t maxlen) 28 const char *end = memchr (string, '\0', maxlen); 29 return end ? (size_t) (end - string) : maxlen;
|
strnlen1.h | 1 /* Find the length of STRING + 1, but scan at most MAXLEN bytes. 28 /* Find the length of STRING + 1, but scan at most MAXLEN bytes. 29 If no '\0' terminator is found in that many characters, return MAXLEN. */ 30 /* This is the same as strnlen (string, maxlen - 1) + 1. */ 31 extern size_t strnlen1 (const char *string, size_t maxlen)
|
/ndk/sources/host-tools/sed-4.2.1/lib/ |
strnlen.c | 3 /* Find the length of STRING, but scan at most MAXLEN characters. 25 /* Find the length of STRING, but scan at most MAXLEN characters. 26 If no '\0' terminator is found in that many characters, return MAXLEN. */ 29 strnlen (const char *string, size_t maxlen) 31 const char *end = memchr (string, '\0', maxlen); 32 return end ? (size_t) (end - string) : maxlen;
|
/external/dropbear/libtommath/ |
bn_mp_toradix_n.c | 20 * Stores upto maxlen-1 chars and always a NULL byte 22 int mp_toradix_n(mp_int * a, char *str, int radix, int maxlen) 29 /* check range of the maxlen, radix */ 30 if (maxlen < 2 || radix < 2 || radix > 64) { 55 --maxlen; 60 if (--maxlen < 1) {
|
/external/qemu/distrib/sdl-1.2.15/src/stdlib/ |
SDL_string.c | 329 size_t SDL_strlcpy(char *dst, const char *src, size_t maxlen) 332 if ( maxlen > 0 ) { 333 size_t len = SDL_min(srclen, maxlen-1); 342 size_t SDL_strlcat(char *dst, const char *src, size_t maxlen) 346 if ( dstlen < maxlen ) { 347 SDL_strlcpy(dst+dstlen, src, maxlen-dstlen); 680 int SDL_strncmp(const char *str1, const char *str2, size_t maxlen) 682 while ( *str1 && *str2 && maxlen ) { 687 --maxlen; 689 if ( ! maxlen ) { [all...] |
/external/qemu/distrib/sdl-1.2.15/src/ |
SDL_error.c | 118 char *SDL_GetErrorMsg(char *errstr, unsigned int maxlen) 123 *errstr = '\0'; --maxlen; 135 while ( *fmt && (maxlen > 0) ) { 147 maxlen -= 1; 156 len = SDL_snprintf(msg, maxlen, tmp, error->args[argi++].value_i); 158 maxlen -= len; 161 len = SDL_snprintf(msg, maxlen, tmp, error->args[argi++].value_f); 163 maxlen -= len; 166 len = SDL_snprintf(msg, maxlen, tmp, error->args[argi++].value_ptr); 168 maxlen -= len [all...] |
/external/qemu/distrib/sdl-1.2.15/docs/man3/ |
SDL_VideoDriverName.3 | 8 \fBchar *\fBSDL_VideoDriverName\fP\fR(\fBchar *namebuf, int maxlen\fR);
|
/system/core/adb/ |
get_my_path_darwin.c | 20 void get_my_path(char *s, size_t maxLen) 28 CFStringGetCString(value, s, maxLen, kCFStringEncodingUTF8);
|
get_my_path_linux.c | 22 void get_my_path(char *exe, size_t maxLen) 26 int err = readlink(proc, exe, maxLen - 1);
|
get_my_path_windows.c | 21 void get_my_path(char *exe, size_t maxLen) 26 if (GetModuleFileName(NULL, exe, maxLen) > 0) {
|
get_my_path_freebsd.c | 26 get_my_path(char *exe, size_t maxLen) 32 int err = readlink(proc, exe, maxLen - 1);
|
/bionic/libc/bionic/ |
strnlen.c | 30 size_t strnlen(const char* str, size_t maxlen) 32 char* p = memchr(str, 0, maxlen); 35 return maxlen;
|
/external/linux-tools-perf/util/ |
quote.c | 42 void sq_quote_argv(struct strbuf *dst, const char** argv, size_t maxlen) 51 if (maxlen && dst->len > maxlen)
|
/external/openssl/crypto/bio/ |
b_print.c | 136 size_t *maxlen, size_t *retlen, int *truncated, 172 size_t *maxlen, 195 if (ch == '\0' || (buffer == NULL && currlen >= *maxlen)) 203 doapr_outch(sbuffer,buffer, &currlen, maxlen, ch); 309 fmtint(sbuffer, buffer, &currlen, maxlen, 335 fmtint(sbuffer, buffer, &currlen, maxlen, value, 344 fmtfp(sbuffer, buffer, &currlen, maxlen, 364 doapr_outch(sbuffer, buffer, &currlen, maxlen, 373 max = *maxlen; 375 fmtstr(sbuffer, buffer, &currlen, maxlen, strvalue [all...] |
/dalvik/vm/jdwp/ |
ExpandBuf.cpp | 33 int maxLen; 48 newBuf->maxLen = kInitialStorage; 90 if (pBuf->curLen + newCount <= pBuf->maxLen) 93 while (pBuf->curLen + newCount > pBuf->maxLen) 94 pBuf->maxLen *= 2; 96 newPtr = (u1*) realloc(pBuf->storage, pBuf->maxLen); 98 ALOGE("realloc(%d) failed", pBuf->maxLen);
|
/external/dropbear/ |
cli-authpasswd.c | 49 int p[2], maxlen, len, status; local 88 maxlen = sizeof(buf); 89 while (maxlen > 0) { 90 len = read(p[0], buf + sizeof(buf) - maxlen, maxlen); 92 maxlen -= len; 106 len = sizeof(buf) - maxlen;
|
/external/iproute2/include/ |
libnetlink.h | 53 extern int addattr32(struct nlmsghdr *n, int maxlen, int type, __u32 data); 54 extern int addattr_l(struct nlmsghdr *n, int maxlen, int type, const void *data, int alen); 55 extern int addraw_l(struct nlmsghdr *n, int maxlen, const void *data, int len); 56 extern struct rtattr *addattr_nest(struct nlmsghdr *n, int maxlen, int type); 58 extern struct rtattr *addattr_nest_compat(struct nlmsghdr *n, int maxlen, int type, const void *data, int len); 60 extern int rta_addattr32(struct rtattr *rta, int maxlen, int type, __u32 data); 61 extern int rta_addattr_l(struct rtattr *rta, int maxlen, int type, const void *data, int alen);
|
/external/openssh/openbsd-compat/ |
bsd-snprintf.c | 180 static int dopr(char *buffer, size_t maxlen, const char *format, 182 static int fmtstr(char *buffer, size_t *currlen, size_t maxlen, 184 static int fmtint(char *buffer, size_t *currlen, size_t maxlen, 186 static int fmtfp(char *buffer, size_t *currlen, size_t maxlen, 190 dopr(char *buffer, size_t maxlen, const char *format, va_list args_in) 220 DOPR_OUTCH(buffer, currlen, maxlen, ch); 319 if (fmtint(buffer, &currlen, maxlen, 333 if (fmtint(buffer, &currlen, maxlen, value, 347 if (fmtint(buffer, &currlen, maxlen, value, 363 if (fmtint(buffer, &currlen, maxlen, value [all...] |
/external/icu4c/i18n/ |
name2uni.cpp | 114 int32_t maxLen = uprv_getMaxCharNameLength(); 115 if (maxLen == 0) { 121 ++maxLen; // allow for temporary trailing space 122 char* cbuf = (char*) uprv_malloc(maxLen); 172 // If we are too long then abort. maxLen includes 174 if (name.length() > maxLen) { 191 name.extract(0, len, cbuf, maxLen, US_INV); 227 // maxLen includes temporary trailing space, so use '>='. 228 if (name.length() >= maxLen) {
|
uni2name.cpp | 76 int32_t maxLen = uprv_getMaxCharNameLength(); 77 if (maxLen == 0) { 83 char* buf = (char*) uprv_malloc(maxLen); 100 if ((len = u_charName(c, U_EXTENDED_CHAR_NAME, buf, maxLen, &status)) >0 && !U_FAILURE(status)) {
|
/external/qemu/distrib/sdl-1.2.15/src/audio/ |
SDL_audiodev.c | 50 int SDL_OpenAudioPath(char *path, int maxlen, int flags, int classic) 93 SDL_strlcpy(path, audiodev, maxlen); 94 path[maxlen-1] = '\0'; 126 static int OpenUserDefinedDevice(char *path, int maxlen, int flags) 140 SDL_strlcpy(path, audiodev, maxlen); 141 path[maxlen-1] = '\0'; 146 int SDL_OpenAudioPath(char *path, int maxlen, int flags, int classic) 153 audio_fd = OpenUserDefinedDevice(path,maxlen,flags); 170 SDL_strlcpy( path, audiopath, maxlen );
|
/frameworks/base/cmds/svc/src/com/android/commands/svc/ |
Svc.java | 77 int maxlen = 0; 81 if (maxlen < len) { 82 maxlen = len; 85 String format = " %-" + maxlen + "s %s";
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
wcsnlen.c | 33 wcsnlen(const wchar_t *s, size_t maxlen) 37 for (len = 0; len < maxlen; len++, s++) {
|
/external/regex-re2/re2/testing/ |
string_generator.h | 6 // maxlen letters using the set of letters in alpha. 22 StringGenerator(int maxlen, const vector<string>& alphabet);
|