CARM User's Guide

Discontinued

strcpy

Summary
#include <string.h>

char *strcpy (
  unsigned char *dst,          /* destination string */
  const unsigned char *src);   /* source string */
Description

The strcpy function copies characters from src to dst up to and including the terminating null character.

Return Value

The strcpy function returns dst.

See Also

strcat, strlen, strncat, strncpy

Example
#include <string.h>
#include <stdio.h> /* for printf */

void tst_strcpy (void) {

  unsigned char buf [21];
  unsigned char s [] = "Test String";

  strcpy (buf, s);
  strcat (buf, " #2");

  printf ("new string is %s\n", buf);
}