Searched refs:dstlen (Results 1 - 2 of 2) sorted by relevance

/system/core/run-as/
H A Dpackage.c47 /* Copy 'srclen' string bytes from 'src' into buffer 'dst' of size 'dstlen'
49 * 'dstlen' is 0, even in case of overflow.
52 string_copy(char* dst, size_t dstlen, const char* src, size_t srclen) argument
55 const char* dstend = dst + dstlen;
57 if (dstlen == 0)
/system/core/libcutils/
H A Dtztime.c936 size_t dstlen; local
981 dstlen = name - dstname;
986 dstlen = name - dstname; /* length of DST zone name */
1139 dstlen = 0;
1147 if (dstlen != 0)
1148 sp->charcnt += dstlen + 1;
1155 if (dstlen != 0) {
1156 (void) strncpy(cp, dstname, dstlen);
1157 *(cp + dstlen) = '\0';

Completed in 42 milliseconds