/device/linaro/bootloader/edk2/AppPkg/Applications/Python/Python-2.7.2/Python/ |
strdup.c | 9 register char *copy = malloc(strlen(str) + 1);
local 10 if (copy != NULL)
11 return strcpy(copy, str);
|
/external/python/cpython2/Python/ |
strdup.c | 9 register char *copy = malloc(strlen(str) + 1); local 10 if (copy != NULL) 11 return strcpy(copy, str);
|
/external/python/cpython3/Python/ |
strdup.c | 9 char *copy = malloc(strlen(str) + 1); local 10 if (copy != NULL) 11 return strcpy(copy, str);
|
/external/caliper/examples/src/main/java/examples/ |
CopyArrayBenchmark.java | 6 * You may obtain a copy of the License at 27 * Tests each of four ways to copy an array, for all nine array types. 29 * <p>Once upon a time, {@code clone} was much slower than the other array copy techniques, but 35 * at which time all copy methods were equally efficient. 50 @Override Object[] copy(Object[] array) { method 53 @Override boolean[] copy(boolean[] array) { method 56 @Override byte[] copy(byte[] array) { method 59 @Override char[] copy(char[] array) { method 62 @Override double[] copy(double[] array) { method 65 @Override float[] copy(float[] array) method 68 @Override int[] copy(int[] array) { method 71 @Override long[] copy(long[] array) { method 74 @Override short[] copy(short[] array) { method 79 @Override Object[] copy(Object[] array) { method 82 @Override boolean[] copy(boolean[] array) { method 85 @Override byte[] copy(byte[] array) { method 88 @Override char[] copy(char[] array) { method 91 @Override double[] copy(double[] array) { method 94 @Override float[] copy(float[] array) { method 97 @Override int[] copy(int[] array) { method 100 @Override long[] copy(long[] array) { method 103 @Override short[] copy(short[] array) { method 108 @Override Object[] copy(Object[] array) { method 109 Object[] copy = new Object[array.length]; local 113 @Override boolean[] copy(boolean[] array) { method 118 @Override byte[] copy(byte[] array) { method 123 @Override char[] copy(char[] array) { method 124 char[] copy = new char[array.length]; local 128 @Override double[] copy(double[] array) { method 129 double[] copy = new double[array.length]; local 133 @Override float[] copy(float[] array) { method 134 float[] copy = new float[array.length]; local 138 @Override int[] copy(int[] array) { method 139 int[] copy = new int[array.length]; local 143 @Override long[] copy(long[] array) { method 144 long[] copy = new long[array.length]; local 148 @Override short[] copy(short[] array) { method 149 short[] copy = new short[array.length]; local 155 @Override Object[] copy(Object[] array) { method 157 Object[] copy = new Object[len]; local 163 @Override boolean[] copy(boolean[] array) { method 171 @Override byte[] copy(byte[] array) { method 179 @Override char[] copy(char[] array) { method 181 char[] copy = new char[array.length]; local 187 @Override double[] copy(double[] array) { method 189 double[] copy = new double[array.length]; local 195 @Override float[] copy(float[] array) { method 197 float[] copy = new float[array.length]; local 203 @Override int[] copy(int[] array) { method 205 int[] copy = new int[array.length]; local 211 @Override long[] copy(long[] array) { method 213 long[] copy = new long[array.length]; local 219 @Override short[] copy(short[] array) { method 221 short[] copy = new short[array.length]; local 230 abstract Object[] copy(Object[] array); method in class:CopyArrayBenchmark.Strategy 231 abstract boolean[] copy(boolean[] array); method in class:CopyArrayBenchmark.Strategy 232 abstract byte[] copy(byte[] array); method in class:CopyArrayBenchmark.Strategy 233 abstract char[] copy(char[] array); method in class:CopyArrayBenchmark.Strategy 234 abstract double[] copy(double[] array); method in class:CopyArrayBenchmark.Strategy 235 abstract float[] copy(float[] array); method in class:CopyArrayBenchmark.Strategy 236 abstract int[] copy(int[] array); method in class:CopyArrayBenchmark.Strategy 237 abstract long[] copy(long[] array); method in class:CopyArrayBenchmark.Strategy 238 abstract short[] copy(short[] array); method in class:CopyArrayBenchmark.Strategy [all...] |
/bionic/libc/upstream-openbsd/lib/libc/string/ |
strndup.c | 6 * Permission to use, copy, modify, and distribute this software for any 28 char *copy; local 32 copy = malloc(len + 1); 33 if (copy != NULL) { 34 (void)memcpy(copy, str, len); 35 copy[len] = '\0'; 38 return copy;
|
strdup.c | 42 char *copy; local 45 if ((copy = malloc(siz)) == NULL) 47 (void)memcpy(copy, str, siz); 48 return(copy);
|
/external/compiler-rt/test/asan/TestCases/ |
strdup_oob_test.cc | 17 char *copy = strdup(kString); local 18 int x = copy[4 + argc]; // BOOM
|
/external/mesa3d/src/mesa/vbo/ |
vbo_split_copy.c | 8 * copy of this software and associated documentation files (the "Software"), 10 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 119 check_flush( struct copy_context *copy ) 121 GLenum mode = copy->dstprim[copy->dstprim_nr].mode; 124 copy->dstelt_nr & 1) { /* see bug9962 */ 128 if (copy->dstbuf_nr + 4 > copy->dstbuf_size) 131 if (copy->dstelt_nr + 4 > copy->dstelt_size 603 struct copy_context copy; local [all...] |
/bionic/tools/relocation_packer/ |
Android.mk | 6 # You may obtain a copy of the License at 22 define copy-test-library 33 $(eval $(call copy-test-library,elf_file_unittest_relocs_arm32.so)) 34 $(eval $(call copy-test-library,elf_file_unittest_relocs_arm32_packed.so)) 35 $(eval $(call copy-test-library,elf_file_unittest_relocs_arm64.so)) 36 $(eval $(call copy-test-library,elf_file_unittest_relocs_arm64_packed.so)) 37 $(eval $(call copy-test-library,elf_file_unittest_relocs_ia32.so)) 38 $(eval $(call copy-test-library,elf_file_unittest_relocs_ia32_packed.so)) 39 $(eval $(call copy-test-library,elf_file_unittest_relocs_x64.so)) 40 $(eval $(call copy-test-library,elf_file_unittest_relocs_x64_packed.so) [all...] |
/external/deqp/framework/delibs/decpp/ |
deMemPool.cpp | 9 * You may obtain a copy of the License at 35 char* copy = (char*)pool->alloc(size); local 37 std::copy(string, string+size, copy); 39 return copy;
|
/external/icu/icu4c/source/i18n/unicode/ |
fieldpos.h | 16 * 07/17/98 stephen Added default/copy ctors, and operators =, ==, != 139 * Copy constructor 140 * @param copy the object to be copied from. 143 FieldPosition(const FieldPosition& copy) 144 : UObject(copy), fField(copy.fField), fBeginIndex(copy.fBeginIndex), fEndIndex(copy.fEndIndex) {} 154 * @param copy the object to be copied from. 157 FieldPosition& operator=(const FieldPosition& copy); [all...] |
/external/tcpdump/missing/ |
strdup.c | 45 char *copy; local 48 if ((copy = malloc(len)) == NULL) 50 memcpy(copy, str, len); 51 return (copy);
|
/frameworks/compile/mclinker/lib/MC/ |
Attribute.cpp | 109 Attribute* copy = new Attribute(*m_pBase); local 110 copy->setWholeArchive(); 111 ReplaceOrRecord(m_AttrPool, m_pBase, copy); 115 Attribute* copy = new Attribute(*m_pBase); local 116 copy->unsetWholeArchive(); 117 ReplaceOrRecord(m_AttrPool, m_pBase, copy); 121 Attribute* copy = new Attribute(*m_pBase); local 122 copy->setAsNeeded(); 123 ReplaceOrRecord(m_AttrPool, m_pBase, copy); 127 Attribute* copy = new Attribute(*m_pBase) local 133 Attribute* copy = new Attribute(*m_pBase); local 139 Attribute* copy = new Attribute(*m_pBase); local 145 Attribute* copy = new Attribute(*m_pBase); local 151 Attribute* copy = new Attribute(*m_pBase); local [all...] |
/external/selinux/libsepol/cil/src/ |
cil_copy_ast.h | 37 void cil_copy_list(struct cil_list *orig, struct cil_list **copy); 40 int cil_copy_block(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 41 int cil_copy_blockabstract(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 42 int cil_copy_blockinherit(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 43 int cil_copy_perm(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 44 int cil_copy_class(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 45 int cil_copy_classorder(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 46 int cil_copy_classmapping(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 47 int cil_copy_permset(struct cil_db *db, void *data, void **copy, symtab_t *symtab); 52 int cil_copy_classpermission(__attribute__((unused)) struct cil_db *db, void *data, void **copy, symtab_t *symtab) [all...] |
/external/mesa3d/src/mesa/math/ |
m_copy_tmp.h | 8 * copy of this software and associated documentation files (the "Software"), 10 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 32 static void TAG2(copy, BITS)( GLvector4f *to, const GLvector4f *f ) \ 70 _mesa_copy_tab[0x0] = TAG2(copy, 0x0); 71 _mesa_copy_tab[0x1] = TAG2(copy, 0x1); 72 _mesa_copy_tab[0x2] = TAG2(copy, 0x2); 73 _mesa_copy_tab[0x3] = TAG2(copy, 0x3); 74 _mesa_copy_tab[0x4] = TAG2(copy, 0x4); 75 _mesa_copy_tab[0x5] = TAG2(copy, 0x5); 76 _mesa_copy_tab[0x6] = TAG2(copy, 0x6) [all...] |
/external/icu/icu4c/source/common/unicode/ |
parsepos.h | 73 * Copy constructor 74 * @param copy the object to be copied from. 77 ParsePosition(const ParsePosition& copy) 78 : UObject(copy), 79 index(copy.index), 80 errorIndex(copy.errorIndex) 93 ParsePosition& operator=(const ParsePosition& copy); 185 ParsePosition::operator=(const ParsePosition& copy) 187 index = copy.index; 188 errorIndex = copy.errorIndex [all...] |
/packages/apps/Launcher2/src/com/android/launcher2/ |
PendingAddItemInfo.java | 6 * You may obtain a copy of the License at 70 // Copy constructor 71 public PendingAddWidgetInfo(PendingAddWidgetInfo copy) { 72 info = copy.info; 73 boundWidget = copy.boundWidget; 74 mimeType = copy.mimeType; 75 configurationData = copy.configurationData; 76 componentName = copy.componentName; 77 itemType = copy.itemType; 78 spanX = copy.spanX [all...] |
/external/guava/guava-tests/test/com/google/common/collect/ |
LenientSerializableTester.java | 6 * You may obtain a copy of the License at 48 Set<E> copy = reserialize(original); local 49 assertEquals(original, copy); 50 assertTrue(copy instanceof ImmutableSet); 51 return copy; 56 Multiset<E> copy = reserialize(original); local 57 assertEquals(original, copy); 58 assertTrue(copy instanceof ImmutableMultiset); 59 return copy;
|
/external/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
Memoable.java | 5 * via the copy() method and then reseting the object back to that state later using the reset() method. 10 * Produce a copy of this object with its configuration and in its current state. 15 Memoable copy(); method in interface:Memoable 22 * @param other an object originally {@link #copy() copied} from an object of the same type as this instance.
|
/external/clang/test/CodeGen/ |
2007-04-24-VolatileStructCopy.c | 8 void copy(volatile struct foo *p, struct foo *q) { function
|
/external/libedit/src/ |
wcsdup.c | 9 * Permission to use or copy this software for any purpose is hereby granted 29 wchar_t *copy; local 35 copy = malloc(len * sizeof (wchar_t)); 37 if (!copy) 40 return wmemcpy(copy, str, len);
|
/bionic/libc/upstream-freebsd/lib/libc/string/ |
wcsdup.c | 36 wchar_t *copy; local 40 if ((copy = malloc(len * sizeof(wchar_t))) == NULL) 42 return (wmemcpy(copy, s, len));
|
/external/libcxx/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/ |
copy.pass.cpp | 14 // static char_type* copy(char_type* s1, const char_type* s2, size_t n); 23 assert(std::char_traits<char>::copy(s2, s1, 3) == s2); 27 assert(std::char_traits<char>::copy(NULL, s1, 0) == NULL); 28 assert(std::char_traits<char>::copy(s1, NULL, 0) == s1);
|
/prebuilts/ndk/r16/sources/cxx-stl/llvm-libc++/test/std/strings/char.traits/char.traits.specializations/char.traits.specializations.char/ |
copy.pass.cpp | 14 // static char_type* copy(char_type* s1, const char_type* s2, size_t n); 23 assert(std::char_traits<char>::copy(s2, s1, 3) == s2); 27 assert(std::char_traits<char>::copy(NULL, s1, 0) == NULL); 28 assert(std::char_traits<char>::copy(s1, NULL, 0) == s1);
|
/external/robolectric-shadows/robolectric/src/test/java/org/robolectric/shadows/ |
ShadowWifiConfigurationTest.java | 44 WifiConfiguration copy = shadowOf(wifiConfiguration).copy(); local 46 assertThat(copy.networkId).isEqualTo(1); 47 assertThat(copy.SSID).isEqualTo("SSID"); 48 assertThat(copy.BSSID).isEqualTo("BSSID"); 49 assertThat(copy.preSharedKey).isEqualTo("preSharedKey"); 50 assertThat(copy.status).isEqualTo(666); 51 assertThat(copy.wepTxKeyIndex).isEqualTo(777); 52 assertThat(copy.priority).isEqualTo(2); 53 assertThat(copy.hiddenSSID).isTrue() 74 WifiConfiguration copy = shadowOf(wifiConfiguration).copy(); local 91 WifiConfiguration copy = shadowOf(wifiConfiguration).copy(); local [all...] |