Back to index

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

Go to the source code of this file.

Defines

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

Functions

char * simple_stpcpy (char *, const char *)

Define Documentation

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

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

#define TEST_MAIN

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


Function Documentation

char * simple_stpcpy ( char *  dst,
const char *  src 
)

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

{
  while ((*dst++ = *src++) != '\0');
  return dst - 1;
}