shithub: battleship

ref: 97f4b9b97c470501d25ac82cad771bdff75e9b59
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);
}