modification of strings

Dave Decot decot at hpisod2.HP.COM
Wed Feb 22 00:25:17 AEST 1989


Note, however, that:

	static char blah[20] = "meow";
	char *tmp;

	tmp = strcpy(blah, "grr, snarl, hiss");

works nicely, because enough space is allocated to hold the longer value,
and the space is guaranteed to be writable.

Dave



More information about the Comp.lang.c mailing list