summaryrefslogtreecommitdiff
path: root/regress/lib/libc/alloca/alloca.c
blob: fd3d350c5df6c63c3e9405d93414406e6e09ffd9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
/*	$OpenBSD: alloca.c,v 1.2 2003/06/26 17:15:27 david Exp $	*/

/*	Copyright (c) 2003 Michael Shalayeff. Public Domain.	*/

#include <stdio.h>

int
main()
{
	char *q, *p;

	p = alloca(41);
	strcpy(p, "hellow world");

	q = alloca(53);
	strcpy(q, "hellow world");

	exit(strcmp(p, q));
}