Back to index

glibc  2.9
Defines | Functions
test-mempcpy.c File Reference
#include "test-string.h"
#include "test-memcpy.c"

Go to the source code of this file.


#define MEMCPY_RESULT(dst, len)   (dst) + (len)
#define TEST_MAIN


char * simple_mempcpy (char *, const char *, size_t)

Define Documentation

#define MEMCPY_RESULT (   dst,
)    (dst) + (len)

Definition at line 21 of file test-mempcpy.c.

#define TEST_MAIN

Definition at line 22 of file test-mempcpy.c.

Function Documentation

char * simple_mempcpy ( char *  dst,
const char *  src,
size_t  n 

Definition at line 31 of file test-mempcpy.c.

  while (n--)
    *dst++ = *src++;
  return dst;