shithub: brokentoys

ref: 5a0e28438fe4c0f8cc55430c388c2016cc185cbf
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);
}