/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/chromium_org/third_party/yasm/source/patched-yasm/libyasm/ |
xstrdup.c | 48 char *copy; local 51 copy = yasm_xmalloc(len); 52 memcpy(copy, str, len); 53 return (copy); 60 char *copy; local 64 copy = yasm_xmalloc(len+1); 65 memcpy(copy, str, len); 66 copy[len] = '\0'; 67 return (copy);
|
/external/compiler-rt/test/asan/TestCases/ |
strdup_oob_test.cc | 11 char *copy = strdup(kString); local 12 int x = copy[4 + argc]; // BOOM
|
/external/chromium_org/third_party/mesa/src/src/mesa/vbo/ |
vbo_split_copy.c | 9 * copy of this software and associated documentation files (the "Software"), 11 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 117 check_flush( struct copy_context *copy ) 119 GLenum mode = copy->dstprim[copy->dstprim_nr].mode; 122 copy->dstelt_nr & 1) { /* see bug9962 */ 126 if (copy->dstbuf_nr + 4 > copy->dstbuf_size) 129 if (copy->dstelt_nr + 4 > copy->dstelt_size 599 struct copy_context copy; local [all...] |
/external/mesa3d/src/mesa/vbo/ |
vbo_split_copy.c | 9 * copy of this software and associated documentation files (the "Software"), 11 * the rights to use, copy, modify, merge, publish, distribute, sublicense, 117 check_flush( struct copy_context *copy ) 119 GLenum mode = copy->dstprim[copy->dstprim_nr].mode; 122 copy->dstelt_nr & 1) { /* see bug9962 */ 126 if (copy->dstbuf_nr + 4 > copy->dstbuf_size) 129 if (copy->dstelt_nr + 4 > copy->dstelt_size 599 struct copy_context copy; local [all...] |
/external/chromium_org/third_party/icu/source/i18n/unicode/ |
fieldpos.h | 14 * 07/17/98 stephen Added default/copy ctors, and operators =, ==, != 136 * Copy constructor 137 * @param copy the object to be copied from. 140 FieldPosition(const FieldPosition& copy) 141 : UObject(copy), fField(copy.fField), fBeginIndex(copy.fBeginIndex), fEndIndex(copy.fEndIndex) {} 151 * @param copy the object to be copied from. 154 FieldPosition& operator=(const FieldPosition& copy); [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 | 14 * 07/17/98 stephen Added default/copy ctors, and operators =, ==, != 136 * Copy constructor 137 * @param copy the object to be copied from. 140 FieldPosition(const FieldPosition& copy) 141 : UObject(copy), fField(copy.fField), fBeginIndex(copy.fBeginIndex), fEndIndex(copy.fEndIndex) {} 151 * @param copy the object to be copied from. 154 FieldPosition& operator=(const FieldPosition& copy); [all...] |
/external/tcpdump/missing/ |
strdup.c | 50 char *copy; local 53 if ((copy = malloc(len)) == NULL) 55 memcpy(copy, str, len); 56 return (copy);
|
/packages/apps/Launcher3/src/com/android/launcher3/ |
PendingAddItemInfo.java | 6 * You may obtain a copy of the License at 82 // Copy constructor 83 public PendingAddWidgetInfo(PendingAddWidgetInfo copy) { 84 minWidth = copy.minWidth; 85 minHeight = copy.minHeight; 86 minResizeWidth = copy.minResizeWidth; 87 minResizeHeight = copy.minResizeHeight; 88 previewImage = copy.previewImage; 89 icon = copy.icon; 90 info = copy.info [all...] |
/frameworks/av/include/private/media/ |
VideoFrame.h | 7 ** You may obtain a copy of the License at 36 VideoFrame(const VideoFrame& copy) { 37 mWidth = copy.mWidth; 38 mHeight = copy.mHeight; 39 mDisplayWidth = copy.mDisplayWidth; 40 mDisplayHeight = copy.mDisplayHeight; 41 mSize = copy.mSize; 43 if (mSize > 0 && copy.mData != NULL) { 46 memcpy(mData, copy.mData, mSize); 51 mRotationAngle = copy.mRotationAngle [all...] |
/frameworks/compile/mclinker/lib/MC/ |
Attribute.cpp | 118 Attribute *copy = new Attribute(*m_pBase); local 119 copy->setWholeArchive(); 120 ReplaceOrRecord(m_AttrPool, m_pBase, copy); 125 Attribute *copy = new Attribute(*m_pBase); local 126 copy->unsetWholeArchive(); 127 ReplaceOrRecord(m_AttrPool, m_pBase, copy); 132 Attribute *copy = new Attribute(*m_pBase); local 133 copy->setAsNeeded(); 134 ReplaceOrRecord(m_AttrPool, m_pBase, copy); 139 Attribute *copy = new Attribute(*m_pBase) local 146 Attribute *copy = new Attribute(*m_pBase); local 153 Attribute *copy = new Attribute(*m_pBase); local 160 Attribute *copy = new Attribute(*m_pBase); local 167 Attribute *copy = new Attribute(*m_pBase); local [all...] |
/external/chromium_org/third_party/mesa/src/src/mesa/math/ |
m_copy_tmp.h | 9 * copy of this software and associated documentation files (the "Software"), 11 * 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/mesa3d/src/mesa/math/ |
m_copy_tmp.h | 9 * copy of this software and associated documentation files (the "Software"), 11 * 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/chromium_org/third_party/icu/source/common/unicode/ |
parsepos.h | 71 * Copy constructor 72 * @param copy the object to be copied from. 75 ParsePosition(const ParsePosition& copy) 76 : UObject(copy), 77 index(copy.index), 78 errorIndex(copy.errorIndex) 91 ParsePosition& operator=(const ParsePosition& copy); 183 ParsePosition::operator=(const ParsePosition& copy) 185 index = copy.index; 186 errorIndex = copy.errorIndex [all...] |
/external/icu/icu4c/source/common/unicode/ |
parsepos.h | 71 * Copy constructor 72 * @param copy the object to be copied from. 75 ParsePosition(const ParsePosition& copy) 76 : UObject(copy), 77 index(copy.index), 78 errorIndex(copy.errorIndex) 91 ParsePosition& operator=(const ParsePosition& copy); 183 ParsePosition::operator=(const ParsePosition& copy) 185 index = copy.index; 186 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/bouncycastle/bcprov/src/main/java/org/bouncycastle/util/ |
Memoable.java | 6 * Produce a copy of this object with its configuration and in its current state. 11 public Memoable copy(); method in interface:Memoable 18 * @param other an object originally {@link #copy() copied} from an object of the same type as this instance.
|
/external/clang/test/Analysis/diagnostics/ |
explicit-suppression.cpp | 13 std::copy(I, E, (int *)0);
|
/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));
|
/ndk/sources/android/support/src/locale/ |
duplocale.c | 40 locale_t copy = calloc(1, sizeof(*loc)); local 41 copy[0] = loc[0]; 42 return copy;
|
/external/robolectric/src/test/java/com/xtremelabs/robolectric/shadows/ |
WifiConfigurationTest.java | 43 WifiConfiguration copy = shadowOf(wifiConfiguration).copy(); local 45 assertThat(copy.networkId, equalTo(1)); 46 assertThat(copy.SSID, equalTo("SSID")); 47 assertThat(copy.BSSID, equalTo("BSSID")); 48 assertThat(copy.preSharedKey, equalTo("preSharedKey")); 49 assertThat(copy.status, equalTo(666)); 50 assertThat(copy.wepTxKeyIndex, equalTo(777)); 51 assertThat(copy.priority, equalTo(2)); 52 assertThat(copy.hiddenSSID, equalTo(true)) [all...] |