Re: gchar to char



On Thu, 16 Nov 2000 10:52:12 MST, "Esquibel, Rick" <Rick Esquibel ARZ Boeing com>  said:
> gchar cf[3] = {"100"};

Umm.. cf[4] actually, you need someplace for the trailing null.   This could
cause all sorts of fun if it walks off the end of the string....
-- 
				Valdis Kletnieks
				Operating Systems Analyst
				Virginia Tech

Attachment: pgpyW5Hm83U50.pgp
Description: PGP signature



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]