shithub: brokentoys

ref: 738f91837bffa7e3ff9ac9323dd91cf9453cde77
dir: /const.c/

View raw version
#include <u.h>
#include <libc.h>

char *p = "gooseberry";
char a[] = "gooseberry";

void
main()
{
	print("%s\n%s\n", p, a);
	strncpy(p, "black", 5);
	strncpy(a, "black", 5);
	print("%s\n%s\n", p, a);
	exits(nil);
}