Back to index

glibc  2.9
Defines | Functions
stpcpy.c File Reference
#include <string.h>

Go to the source code of this file.


#define __stpcpy   stpcpy


char * __stpcpy (char *dest, const char *src)

Define Documentation

#define __stpcpy   stpcpy

Definition at line 29 of file stpcpy.c.

Function Documentation

char* __stpcpy ( char *  dest,
const char *  src 

Definition at line 34 of file stpcpy.c.

  register char *d = dest;
  register const char *s = src;

    *d++ = *s;
  while (*s++ != '\0');

  return d - 1;

Here is the caller graph for this function: