codesearch.isocpp.org by Andrew Tomazos.

Enter a valid C/C++ code snippet...

Searching for `mempcpy`...

2489599 source files searched.

2366 matches found.

Here is a random sample of matches...


actcd19/main/l/litmus/litmus_0.13-2/lib/glob.c:574:

    	  drive_spec = (char *) __alloca (dirlen + 1);
#ifdef HAVE_MEMPCPY
*((char *) mempcpy (drive_spec, pattern, dirlen)) = '\0';
#else
memcpy (drive_spec, pattern, dirlen);


actcd19/main/e/elfutils/elfutils_0.170-0.5/libdwfl/dwfl_build_id_find_elf.c:95:

          if (unlikely (name == NULL))
break;
memcpy (mempcpy (name, dir, dirlen), id_name, sizeof id_name);

fd = TEMP_FAILURE_RETRY (open (name, O_RDONLY));


actcd19/main/c/cvs/cvs_1.12.13+real-27/lib/filenamecat.c:78:

      char *p;

p = mempcpy (p_concat, dir, dirlen);
*p = DIRECTORY_SEPARATOR;
p += needs_separator;


actcd19/main/n/newlib/newlib_3.1.0.20181231-1/newlib/libc/string/wmempcpy.c:41:

    	size_t n)
{
return (wchar_t *) mempcpy (d, s, n * sizeof (wchar_t));
}


actcd19/main/g/gdb/gdb_8.1-4/gdb/gnulib/import/glob.c:849:

                    }

mempcpy (mempcpy (newp, home_dir, home_len),
&dirname[1], dirlen);


actcd19/main/d/dash/dash_0.5.10.2-5/src/mystring.c:218:

    
*q++ = '"';
q = mempcpy(q, s, len);
*q++ = '"';
s += len;


actcd19/main/g/glibc/glibc_2.19-12/intl/localealias.c:69:

    
# ifndef mempcpy
# define mempcpy __mempcpy
# endif
# define HAVE_MEMPCPY 1


actcd19/main/f/fsarchiver/fsarchiver_0.8.5-2/src/writebuf.c:150:

            
// b. write section to buffer
bufpos=mempcpy(bufpos, &item->section, sizeof(item->section));

// c. write key to buffer


actcd19/main/g/glibc/glibc_2.27-3/nscd/aicache.c:398:

    
if (canon != NULL)
cp = mempcpy (cp, canon, canonlen);

key_copy = memcpy (cp, key, req->key_len);


actcd19/main/b/brltty/brltty_5.4-7/Programs/file.c:185:

          char *byte = newPath;

byte = mempcpy(byte, path, headLength);
byte = mempcpy(byte, extension, extensionLength);
*byte = 0;


actcd19/main/b/busybox/busybox_1.30.1-2/networking/udhcp/d6_dhcpc.c:827:

    	opt_ptr = init_d6_packet(&packet, D6_MSG_RELEASE, random_xid());
/* server id */
opt_ptr = mempcpy(opt_ptr, client6_data.server_id, client6_data.server_id->len + 2+2);
/* IA NA (contains our current IP) */
if (client6_data.ia_na)


actcd19/main/libh/libhdate/libhdate_1.6.02-2/.pc/typos.patch/examples/hcal/hcal.c:608:

    		hebrew_buffer = malloc(hebrew_buffer_len+1);
hebrew_buffer_next = mempcpy(hebrew_buffer, h1_month, h1_month_len);
hebrew_buffer_next = mempcpy(hebrew_buffer_next, " ", SPACE_WIDTH);
hebrew_buffer_next = mempcpy(hebrew_buffer_next, h1_year, h1_year_len);
hebrew_buffer_next = mempcpy(hebrew_buffer_next, " - ", DASH_WIDTH);


actcd19/main/g/glibc/glibc_2.19-12/posix/glob.c:397:

    
/* Construct the new glob expression. */
mempcpy (mempcpy (alt_start, p, next - p), rest, rest_len);

result = glob (onealt,


actcd19/main/b/brltty/brltty_5.6-10/Drivers/Braille/Seika/braille.c:200:

      unsigned char *byte = packet;

byte = mempcpy(byte, header, sizeof(header));

{


actcd19/main/c/cvs/cvs_1.12.13+real-27/lib/getcwd.c:71:

    
#if _LIBC
# ifndef mempcpy
# define mempcpy __mempcpy
# endif


actcd19/main/u/uclibc/uclibc_1.0.31-1/libc/misc/elf/dl-support.c:70:

    
/* Initialize the memory. */
memset (mempcpy (dest, map->l_tls_initimage, map->l_tls_initimage_size),
'\0', map->l_tls_blocksize - map->l_tls_initimage_size);
}


actcd19/main/b/busybox/busybox_1.27.2-3/networking/arping.c:118:

    
p = mempcpy(p, &ME->sll_addr, ah->ar_hln);
p = mempcpy(p, src_addr, 4);

if (option_mask32 & ADVERT)


actcd19/main/g/glibc/glibc_2.28-7/string/test-strcasestr.c:98:

        {
size_t t = l > dl ? dl : l;
ss2 = mempcpy (ss2, d, t);
}
s2[len2] = '\0';


actcd19/main/a/amule/amule_2.3.2-5/intl/localealias.c:68:

    
# ifndef mempcpy
# define mempcpy __mempcpy
# endif
# define HAVE_MEMPCPY 1


actcd19/main/a/amule/amule_2.3.2-5/intl/localealias.c:213:

      full_fname = (char *) alloca (fname_len + sizeof aliasfile);
#ifdef HAVE_MEMPCPY
mempcpy (mempcpy (full_fname, fname, fname_len),
aliasfile, sizeof aliasfile);
#else


actcd19/main/e/elfutils/elfutils_0.176-1/libdwfl/linux-kernel-modules.c:731:

      while ((p = memchr (n, from, namelen - (n - module_name))) != NULL)
{
a = mempcpy (a, n, p - n);
*a++ = to;
n = p + 1;


actcd19/main/p/proftpd-dfsg/proftpd-dfsg_1.3.6-4/lib/glibc-glob.c:659:

          newp = (char *) __alloca (dirlen + 1);
#ifdef HAVE_MEMPCPY
*((char *) mempcpy (newp, pattern, dirlen)) = '\0';
#else
memcpy (newp, pattern, dirlen);


actcd19/main/n/nano/nano_2.9.1-1/lib/glob.c:404:

    
/* Construct the new glob expression. */
mempcpy (mempcpy (alt_start, p, next - p), rest, rest_len);

result = glob (onealt,


actcd19/main/s/systemd/systemd_240-4/src/timedate/timedated.c:304:

                            return -ENOMEM;

*(char*) mempcpy(stpcpy(stpcpy(mempcpy(w, s, a), prepend), c->local_rtc ? "LOCAL" : "UTC"), e, b) = 0;

if (streq(w, NULL_ADJTIME_UTC)) {


actcd19/main/p/prelude-lml/prelude-lml_4.1.0-2/libmissing/glob.c:1628:

            }

mempcpy (mempcpy (mempcpy (fullname, directory, dirlen),
"/", 1),
pattern, patlen + 1);


actcd19/main/a/a2ps/a2ps_4.14-4/lib/path-concat.c:25:

    
#ifndef HAVE_MEMPCPY
# define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))
#endif


actcd19/main/c/cvs/cvs_1.12.13+real-27/lib/filenamecat.c:85:

        *base_in_result = p - IS_ABSOLUTE_FILE_NAME (abase);

p = mempcpy (p, base, baselen);
*p = '\0';


actcd19/main/p/proftpd-dfsg/proftpd-dfsg_1.3.6-4/lib/glibc-glob.c:1248:

    	char *endp = (char *) mempcpy (new, dirname, dirlen);
*endp++ = DIRSEP_CHAR;
mempcpy (endp, array[i], eltlen);
}
#else


actcd19/main/g/glibc/glibc_2.25-2/string/stratcliff.c:47:

    # define STPNCPY stpncpy
# define MEMCPY memcpy
# define MEMPCPY mempcpy
# define MEMCHR memchr
# define STRCMP strcmp


actcd19/main/libz/libzia/libzia_4.09-1/include/regex_internal.h:121:

    # define __iswctype iswctype
# define __btowc btowc
# define __mempcpy mempcpy
# define __wcrtomb wcrtomb
# define __regfree regfree


actcd19/main/u/uclibc/uclibc_1.0.31-1/utils/getconf.c:1242:

    	      size_t spec_len = strlen (spec);
char getconf_name[getconf_dirlen + 1 + spec_len + 1];
memcpy (mempcpy (mempcpy (getconf_name, getconf_dir,
getconf_dirlen),
"/", 1), spec, spec_len + 1);


actcd19/main/s/systemd/systemd_241-1/src/basic/tmpfile-util.c:117:

                    return -ENOMEM;

strcpy(stpcpy(stpcpy(stpcpy(mempcpy(t, p, fn - p), ".#"), extra), fn), "XXXXXX");

*ret = path_simplify(t, false);


actcd19/main/g/glibc/glibc_2.19-12/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:141:

      /* Support sysdeps/powerpc/powerpc64/multiarch/mempcpy.c.  */
IFUNC_IMPL (i, name, mempcpy,
IFUNC_IMPL_ADD (array, i, mempcpy,
hwcap & PPC_FEATURE_HAS_VSX,
__mempcpy_power7)


actcd19/main/g/glibc/glibc_2.28-8/benchtests/bench-strcasestr.c:93:

        {
size_t t = l > dl ? dl : l;
ss2 = mempcpy (ss2, d, t);
}
s2[len2] = '\0';


actcd19/main/g/glibc/glibc_2.19-12/io/tst-fcntl.c:48:

       name_len = strlen (test_dir);
name = malloc (name_len + sizeof ("/fcntlXXXXXX"));
mempcpy (mempcpy (name, test_dir, name_len),
"/fcntlXXXXXX", sizeof ("/fcntlXXXXXX"));
add_temp_file (name);


actcd19/main/b/brltty/brltty_5.6-10/Drivers/Braille/Braudi/braille.c:84:

      byte = mempcpy(byte, header, sizeof(header));
byte = translateOutputCells(byte, outputBuffer, brl->textColumns);
byte = mempcpy(byte, trailer, sizeof(trailer));

return writeBytes(brl, buffer, byte-buffer);


actcd19/main/g/glibc/glibc_2.25-3/rt/tst-aio64.c:56:

      name_len = strlen (test_dir);
name = xmalloc (name_len + sizeof ("/aioXXXXXX"));
mempcpy (mempcpy (name, test_dir, name_len),
"/aioXXXXXX", sizeof ("/aioXXXXXX"));


actcd19/main/g/gtk-gnutella/gtk-gnutella_1.1.8-2/src/lib/str.c:796:

    	len = str->s_len;
sdup = halloc(len + 1);
p = mempcpy(sdup, str->s_data, len);
*p = '\0';


actcd19/main/w/wimlib/wimlib_1.13.0-1/src/wimboot.c:384:

    			wimlib_assert(old_hdr->entry_1s[i].entry_2_length ==
new_hdr->entry_1s[i].entry_2_length);
p = mempcpy(p,
((const u8 *)old_hdr + old_hdr->entry_1s[i].entry_2_offset),
old_hdr->entry_1s[i].entry_2_length);


actcd19/main/b/brltty/brltty_5.6-10/Drivers/Braille/Iris/braille.c:1005:

      *p++ = (packetSize >> 8) & 0X00FF;
*p++ = packetSize & 0X00FF;
p = mempcpy(p, data, size);
*p++ = ETX;


actcd19/main/u/uclibc/uclibc_1.0.31-1/libcrypt/sha512-crypt.c:204:

      cp = s_bytes = alloca (salt_len);
for (cnt = salt_len; cnt >= 64; cnt -= 64)
cp = mempcpy (cp, temp_result, 64);
memcpy (cp, temp_result, cnt);


actcd19/main/w/wimlib/wimlib_1.13.0-1/src/test_support.c:516:

    			int name_len = sizeof(capability_name) - 1;
entry->name_len = name_len;
p = mempcpy(entry->name, capability_name, name_len + 1);
generated_capability_xattr = true;
} else {


actcd19/main/e/elfutils/elfutils_0.170-0.5/src/size.c:352:

      if (prefix != NULL)
{
cp = mempcpy (cp, prefix, prefix_len);
*cp++ = ':';
}


actcd19/main/g/glibc/glibc_2.25-3/sysdeps/unix/sysv/linux/lddlibc4.c:98:

      filename_len = strlen (filename);
buf = (char *) alloca (sizeof "__LDD_ARGV0=" + filename_len);
mempcpy (mempcpy (buf, "__LDD_ARGV0=", sizeof "__LDD_ARGV0=" - 1),
filename, filename_len + 1);
/* ...and put the value in the environment. */


actcd19/main/g/glibc/glibc_2.24-10/include/string.h:105:

    libc_hidden_builtin_proto (memchr)
libc_hidden_builtin_proto (memcpy)
libc_hidden_builtin_proto (mempcpy)
libc_hidden_builtin_proto (memcmp)
libc_hidden_builtin_proto (memmove)


actcd19/main/l/llvm-toolchain-3.8/llvm-toolchain-3.8_3.8.1-23/clang/test/Analysis/bstring.c:202:

      char dst[3];

mempcpy(dst+1, src+2, 2); // no-warning
}


actcd19/main/g/glibc/glibc_2.28-7/iconv/iconvconfig.c:535:

      new_module->fromname = mempcpy (new_module->toname, toname, tolen);

new_module->filename = mempcpy (new_module->fromname, fromname, fromlen);

new_module->cost = cost;


actcd19/main/g/glibc/glibc_2.28-7/iconv/iconvconfig.c:669:

      cp = infile;
if (dir[0] == '/')
cp = mempcpy (cp, prefix, prefix_len);
strcpy (mempcpy (cp, dir, dirlen), "gconv-modules");


actcd19/main/g/glibc/glibc_2.19-12/posix/glob.c:760:

    		}

mempcpy (mempcpy (newp, home_dir, home_len),
&dirname[1], dirlen);


actcd19/main/libh/libhdate/libhdate_1.6.02-2/.pc/duplicate_gnu_source.patch/examples/hcal/hdate.c:560:

    		hebrew_buffer_next = mempcpy(hebrew_buffer, hebrew_buffer1, hebrew_buffer1_len);
if (hebrew_buffer2_len > 0) hebrew_buffer_next = mempcpy(hebrew_buffer_next, hebrew_buffer2, hebrew_buffer2_len);
if (hebrew_buffer3_len > 0) hebrew_buffer_next = mempcpy(hebrew_buffer_next, hebrew_buffer3, hebrew_buffer3_len);
hebrew_buffer_next = mempcpy(hebrew_buffer_next, hebrew_buffer4, hebrew_buffer4_len);
hebrew_buffer[hebrew_buffer_len]='\0';


actcd19/main/f/fsarchiver/fsarchiver_0.8.5-2/src/writebuf.c:154:

            // c. write key to buffer
temp16=cpu_to_le16(item->key);
bufpos=mempcpy(bufpos, &temp16, sizeof(temp16));

// d. write sizeof(data) to buffer


actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/clang/test/Analysis/bstring.c:237:

      int a[4] = {0};
mempcpy(a+2, a+1, 4); // no-warning
mempcpy(a+1, a+2, 4); // no-warning
}


actcd19/main/g/git/git_2.5.0-1/sequencer.c:148:

    	out->label = q;
q = mempcpy(q, abbrev, abbrev_len);
q = mempcpy(q, "... ", strlen("... "));
out->subject = q;
q = mempcpy(q, subject, subject_len);


actcd19/main/b/brltty/brltty_5.6-8/Drivers/Braille/Baum/braille.c:2519:

      }

byte = mempcpy(byte, externalCells, ht->textCount);

return writeHandyTechPacket(brl, packet, byte-packet);


actcd19/main/b/brltty/brltty_5.4-7/.pc/git-manufacturer.patch/Drivers/Braille/HandyTech/braille.c:790:

          report[0] = HT_HID_RPT_InData;
report[1] = count;
memset(mempcpy(report+2, &buffer[index], count), 0, sizeof(report)-count-2);

result = usbWriteEndpoint(device, definition->outputEndpoint,


actcd19/main/b/brltty/brltty_5.4-7/Programs/ctb_translate.c:575:

    putCells (BrailleContractionData *bcd, const BYTE *cells, int count) {
if (bcd->output.current + count > bcd->output.end) return 0;
bcd->output.current = mempcpy(bcd->output.current, cells, count);
return 1;
}


actcd19/main/g/gdb/gdb_8.1-4/gdb/gnulib/import/glob.c:1607:

            }

mempcpy (mempcpy (mempcpy (fullname, directory, dirlen),
"/", 1),
pattern, patlen + 1);


actcd19/main/b/brltty/brltty_5.3.1-1/Headers/prologue.h:351:

    
#ifndef HAVE_MEMPCPY
#define mempcpy(dest,src,size) (void *)((char *)memcpy((dest), (src), (size)) + (size))
#endif /* HAVE_MEMPCPY */


actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/clang/test/Analysis/bstring.c:252:

    void mempcpy12() {
char a[4] = {0};
mempcpy(0, a, 0); // no-warning
}


actcd19/main/l/llvm-toolchain-7/llvm-toolchain-7_7.0.1-6/clang/test/Analysis/bstring.c:166:

    
#define mempcpy BUILTIN(mempcpy)
void *mempcpy(void *restrict s1, const void *restrict s2, size_t n);

#endif /* VARIANT */


actcd19/main/c/coreutils/coreutils_8.28-1/src/expr.c:306:

              /* Copy one character */
--vlen;
vlim = mempcpy (vlim, mbui_cur_ptr (iter), mb_len (mbui_cur (iter)));
}
}


actcd19/main/g/glibc/glibc_2.27-3/elf/cache.c:402:

    
size_t len = strlen (entry->lib) + 1;
str = mempcpy (str, entry->lib, len);
str_offset += len;
/* Then the path. */


actcd19/main/g/glibc/glibc_2.19-12/nscd/servicescache.c:230:

          cp = mempcpy (cp, serv->s_name, s_name_len);
cp = mempcpy (cp, serv->s_proto, s_proto_len);
cp = mempcpy (cp, s_aliases_len, s_aliases_cnt * sizeof (uint32_t));

/* Then the aliases. */


actcd19/main/g/gridengine/gridengine_8.1.9+dfsg-9/source/3rdparty/qmake/glob/glob.c:706:

    	      newp = (char *) __alloca (home_len + dirlen);
# ifdef HAVE_MEMPCPY
mempcpy (mempcpy (newp, home_dir, home_len),
&dirname[1], dirlen);
# else


actcd19/main/p/proftpd-dfsg/proftpd-dfsg_1.3.6-4/lib/glibc-glob.c:238:

    #if !defined HAVE_MEMPCPY && defined __GLIBC__ && __GLIBC__ - 0 == 2 && __GLIBC_MINOR__ >= 1
# define HAVE_MEMPCPY 1
# undef mempcpy
# define mempcpy(Dest, Src, Len) __mempcpy (Dest, Src, Len)
#endif


actcd19/main/c/cadaver/cadaver_0.23.3-2.1/lib/intl/dcigettext.c:162:

    # endif
# ifndef HAVE_MEMPCPY
static void *mempcpy (void *dest, const void *src, size_t n);
# endif
#endif


actcd19/main/g/glibc/glibc_2.28-7/sysdeps/s390/multiarch/mempcpy.c:21:

    
#if defined SHARED && IS_IN (libc)
# define mempcpy __redirect_mempcpy
# define __mempcpy __redirect___mempcpy
# define __NO_STRING_INLINES


actcd19/main/r/rcs-blame/rcs-blame_1.3.1-4.1/lib/filenamecat.c:33:

    
#if ! HAVE_MEMPCPY && ! defined mempcpy
# define mempcpy(D, S, N) ((void *) ((char *) memcpy (D, S, N) + (N)))
#endif


actcd19/main/g/glibc/glibc_2.28-7/string/test-mempcpy.c:29:

    
IMPL (simple_mempcpy, 0)
IMPL (mempcpy, 1)

char *


actcd19/main/b/brltty/brltty_5.4-7/Programs/brlapi_client.c:1181:

    
*p++ = length;
p = mempcpy(p, language, length);
#endif /* get non-wide character set */
}


actcd19/main/h/heroes/heroes_0.21-16/intl/dcigettext.c:541:

      ADD_BLOCK (block_list, xdomainname);

stpcpy (mempcpy (stpcpy (stpcpy (xdomainname, categoryname), "/"),
domainname, domainname_len),
".mo");


actcd19/main/e/elfutils/elfutils_0.176-1/.pc/0003-Add-mips-n64-relocation-format-hack.patch/src/strip.c:1015:

          size_t debug_fname_len = strlen (debug_fname);
tmp_debug_fname = (char *) xmalloc (debug_fname_len + sizeof (".XXXXXX"));
strcpy (mempcpy (tmp_debug_fname, debug_fname, debug_fname_len),
".XXXXXX");


actcd19/main/g/gcc-avr/gcc-avr_5.4.0+Atmel3.6.1-2/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/mempcpy-chk.c:392:

    	    }

p = mempcpy (u1.buf + off1, u2.buf + off2, len);
if (p != u1.buf + off1 + len)
abort ();


actcd19/main/n/nano/nano_2.9.1-1/lib/glob.c:363:

    
/* We know the prefix for all sub-patterns. */
alt_start = mempcpy (onealt, pattern, begin - pattern);

/* Find the first sub-pattern and at the same time find the


actcd19/main/b/brltty/brltty_5.4-7/.pc/defauth-keyfile.patch/Programs/brlapi_client.c:1176:

    
*p++ = length;
p = mempcpy(p, language, length);
#endif /* get non-wide character set */
}


actcd19/main/l/ltris/ltris_1.0.19-3/intl/dcigettext.c:643:

    		    {
newp->domainname =
mempcpy (newp->msgid, msgid1, msgid_len);
memcpy (newp->domainname, domainname, domainname_len + 1);
newp->category = category;


actcd19/main/g/glibc/glibc_2.25-3/string/bits/string3.h:64:

    #ifdef __USE_GNU
__fortify_function void *
__NTH (mempcpy (void *__restrict __dest, const void *__restrict __src,
size_t __len))
{


actcd19/main/p/php7.3/php7.3_7.3.3-1/.pc/0046-Fix-ext-date-lib-parse_tz-PATH_MAX-HURD-FTBFS.patch/ext/date/lib/parse_tz.c:751:

            data = malloc(3 * sysdb->index_size + 7);

p = mempcpy(data, FAKE_HEADER, sizeof(FAKE_HEADER) - 1);

for (n = 0; n < sysdb->index_size; n++) {


actcd19/main/libh/libhdate/libhdate_1.6.02-2/.pc/clang.patch/examples/hcal/hcal.c:628:

    		hebrew_buffer_next = mempcpy(hebrew_buffer, h1_month, h1_month_len);
hebrew_buffer_next = mempcpy(hebrew_buffer_next, " - ", DASH_WIDTH);
hebrew_buffer_next = mempcpy(hebrew_buffer_next, h2_month, h2_month_len);
hebrew_buffer_next = mempcpy(hebrew_buffer_next, " ", SPACE_WIDTH);
hebrew_buffer_next = mempcpy(hebrew_buffer_next, h1_year, h1_year_len);


actcd19/main/e/elfutils/elfutils_0.170-0.5/src/nm.c:1537:

      /* Create the full name of the file.  */
if (prefix != NULL)
cp = mempcpy (cp, prefix, prefix_len);
cp = mempcpy (cp, fname, fname_len);
if (suffix != NULL)


actcd19/main/g/glibc/glibc_2.19-12/posix/getconf.c:1216:

    	      size_t spec_len = strlen (spec);
char getconf_name[getconf_dirlen + 1 + spec_len + 1];
memcpy (mempcpy (mempcpy (getconf_name, getconf_dir,
getconf_dirlen),
"/", 1), spec, spec_len + 1);


actcd19/main/g/gdb/gdb_8.1-4/gdb/gnulib/import/glob.c:922:

                    }
else
*((char *) mempcpy (newp, dirname + 1, end_name - dirname))
= '\0';
user_name = newp;


actcd19/main/g/glibc/glibc_2.28-7/.pc/git-updates.diff/intl/dcigettext.c:1114:

    		      charset = (char *) alloca (len + 1);
# if defined _LIBC || HAVE_MEMPCPY
*((char *) mempcpy (charset, charsetstr, len)) = '\0';
# else
memcpy (charset, charsetstr, len);


actcd19/main/s/systemd/systemd_241-1/src/basic/escape.c:492:

                    assert_not_reached("Bad EscapeStyle");

t = mempcpy(t, s, p - s);

if (style == ESCAPE_BACKSLASH)


actcd19/main/k/kasumi/kasumi_2.5-9/intl/dcigettext.c:157:

    # endif
# ifndef HAVE_MEMPCPY
static void *mempcpy PARAMS ((void *dest, const void *src, size_t n));
# endif
#endif


actcd19/main/g/glibc/glibc_2.28-7/nscd/grpcache.c:252:

    
/* This is the member string length array. */
cp = mempcpy (cp, gr_mem_len, gr_mem_cnt * sizeof (uint32_t));
gr_name = cp;
cp = mempcpy (cp, grp->gr_name, gr_name_len);


actcd19/main/e/elfutils/elfutils_0.176-1/libdwfl/dwfl_build_id_find_elf.c:95:

          if (unlikely (name == NULL))
break;
memcpy (mempcpy (name, dir, dirlen), id_name, sizeof id_name);

fd = TEMP_FAILURE_RETRY (open (name, O_RDONLY));


actcd19/main/g/glibc/glibc_2.28-5/sysdeps/s390/multiarch/ifunc-impl-list.c:77:

    	      IFUNC_IMPL_ADD (array, i, mempcpy,
S390_IS_Z10 (stfle_bits), ____mempcpy_z10)
IFUNC_IMPL_ADD (array, i, mempcpy, 1, ____mempcpy_default))

#endif /* SHARED */


actcd19/main/l/lftp/lftp_4.8.4-2/lib/glob.c:747:

                  if (unescape != NULL)
{
char *p = mempcpy (newp, dirname + 1,
unescape - dirname - 1);
char *q = unescape;


actcd19/main/b/brltty/brltty_5.6-8/Drivers/Braille/Baum/braille.c:1347:

          *byte++ = start;
*byte++ = count;
byte = mempcpy(byte, registers, count);

if (!writeBaumPacket(brl, packet, byte-packet)) return 0;


actcd19/main/d/dietlibc/dietlibc_0.34~cvs20160606-6/libcrypt/sha512crypt.c:465:

      cp = p_bytes = alloca (key_len);
for (cnt = key_len; cnt >= 64; cnt -= 64)
cp = mempcpy (cp, temp_result, 64);
memcpy (cp, temp_result, cnt);


actcd19/main/l/llvm-toolchain-3.8/llvm-toolchain-3.8_3.8.1-23/compiler-rt/lib/msan/tests/msan_test.cc:4085:

      EXPECT_POISONED_O(y[N-1], ox);
EXPECT_NOT_POISONED(x);
void *res = mempcpy(q, x, N * sizeof(T));
ASSERT_EQ(q + N, res);
EXPECT_POISONED_O(q[0], ox);


actcd19/main/g/glibc/glibc_2.28-8/sysdeps/sparc/sparc64/multiarch/ifunc-impl-list.c:62:

    	      IFUNC_IMPL_ADD (array, i, mempcpy, hwcap & HWCAP_SPARC_ULTRA3,
__mempcpy_ultra3)
IFUNC_IMPL_ADD (array, i, mempcpy, 1, __mempcpy_ultra1));

IFUNC_IMPL (i, name, bzero,


actcd19/main/g/gcc-avr/gcc-avr_5.4.0+Atmel3.6.1-2/gcc/gcc/testsuite/gcc.c-torture/execute/builtins/mempcpy-chk.c:50:

      memcpy (p + 20, "qrstu", 6);
memcpy (p + 25, "QRSTU", 6);
if (mempcpy (p + 25 + 1, s1, 3) != (p + 25 + 1 + 3)
|| memcmp (p + 25, "Q123U", 6))
abort ();


actcd19/main/c/cvs/cvs_1.12.13+real-27/lib/glob.c:1043:

      struct_stat64 st64;

mempcpy (mempcpy (mempcpy (fullname, dir, dirlen), "/", 1),
fname, fnamelen + 1);


actcd19/main/o/octave/octave_4.4.1-5/libgnu/glob.c:877:

              if (pglob->gl_pathv[newcount] == NULL)
goto nospace;
p = mempcpy (pglob->gl_pathv[newcount], dirname, dirlen);
p[0] = '/';
p[1] = '\0';


actcd19/main/g/glibc/glibc_2.19-12/sysdeps/powerpc/powerpc64/multiarch/ifunc-impl-list.c:140:

    
/* Support sysdeps/powerpc/powerpc64/multiarch/mempcpy.c. */
IFUNC_IMPL (i, name, mempcpy,
IFUNC_IMPL_ADD (array, i, mempcpy,
hwcap & PPC_FEATURE_HAS_VSX,


actcd19/main/b/brltty/brltty_5.6-10/Drivers/Braille/Iris/braille.c:2041:

                      char *byte = brl->data->serialNumber;

byte = mempcpy(byte, deviceResponse+2,
(sizeof(brl->data->serialNumber) - 1));
*byte = 0;


actcd19/main/e/elfutils/elfutils_0.176-1/src/findtextrel.c:368:

    	  char *difname = (char *) alloca (rootdir_len + debuginfo_rootlen
+ fname_len + 8);
strcpy (mempcpy (stpcpy (mempcpy (mempcpy (difname, rootdir,
rootdir_len),
debuginfo_root,


actcd19/main/g/glibc/glibc_2.28-6/nscd/servicescache.c:220:

          cp = dataset->strdata;

cp = mempcpy (cp, serv->s_name, s_name_len);
cp = mempcpy (cp, serv->s_proto, s_proto_len);
cp = mempcpy (cp, s_aliases_len, s_aliases_cnt * sizeof (uint32_t));