Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!cwjcc!gatech!ncar!ames!oliveb!amdahl!sri-unix!quintus!ok From: ok@quintus.uucp (Richard A. O'Keefe) Newsgroups: comp.lang.c Subject: Re: hardcoded constants Message-ID: <883@quintus.UUCP> Date: 17 Dec 88 00:46:29 GMT References: <15852@iuvax.cs.indiana.edu> Sender: news@quintus.UUCP Reply-To: ok@quintus.UUCP (Richard A. O'Keefe) Organization: Quintus Computer Systems, Inc. Lines: 7 henry@utzoo.uucp (Henry Spencer) writes: >- foo = malloc(strlen(a)+strlen(b)+2); /* 2 for '/' '\0' */ >-Now, what's a good name for that "2", and how does naming it improve >-readability? I recently had a very similar problem. A *superb* "name" for that 2 is sizeof "/"