shithub: battleship

ref: 21d0ffbbf001fd209208e33503890ad6847105db
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);
}