1e1f2d32ngie/* $NetBSD: h_strcpy.c,v 1.1 2010/12/27 02:04:19 pgoyette Exp $ */
2e1f2d32ngie
3e1f2d32ngie/*
4e1f2d32ngie * Copyright (c) 2008 The NetBSD Foundation, Inc.
5e1f2d32ngie * All rights reserved.
6e1f2d32ngie *
7e1f2d32ngie * Redistribution and use in source and binary forms, with or without
8e1f2d32ngie * modification, are permitted provided that the following conditions
9e1f2d32ngie * are met:
10e1f2d32ngie * 1. Redistributions of source code must retain the above copyright
11e1f2d32ngie *    notice, this list of conditions and the following disclaimer.
12e1f2d32ngie * 2. Redistributions in binary form must reproduce the above copyright
13e1f2d32ngie *    notice, this list of conditions and the following disclaimer in the
14e1f2d32ngie *    documentation and/or other materials provided with the distribution.
15e1f2d32ngie *
16e1f2d32ngie * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND CONTRIBUTORS
17e1f2d32ngie * ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED
18e1f2d32ngie * TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
19e1f2d32ngie * PURPOSE ARE DISCLAIMED.  IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS
20e1f2d32ngie * BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
21e1f2d32ngie * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
22e1f2d32ngie * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
23e1f2d32ngie * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
24e1f2d32ngie * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
25e1f2d32ngie * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
26e1f2d32ngie * POSSIBILITY OF SUCH DAMAGE.
27e1f2d32ngie */
28e1f2d32ngie
29e1f2d32ngie#include <sys/cdefs.h>
30e1f2d32ngie__COPYRIGHT("@(#) Copyright (c) 2008\
31e1f2d32ngie The NetBSD Foundation, inc. All rights reserved.");
32e1f2d32ngie__RCSID("$NetBSD: h_strcpy.c,v 1.1 2010/12/27 02:04:19 pgoyette Exp $");
33e1f2d32ngie
34e1f2d32ngie#include <stdio.h>
35e1f2d32ngie#include <string.h>
36e1f2d32ngie
37e1f2d32ngieint
38e1f2d32ngiemain(int argc, char *argv[])
39e1f2d32ngie{
40e1f2d32ngie	char b[10];
41e1f2d32ngie	(void)strcpy(b, argv[1]);
42e1f2d32ngie
43e1f2d32ngie	(void)printf("%s\n", b);
44e1f2d32ngie	return 0;
45e1f2d32ngie}
46