Path: utzoo!utgpu!watmath!clyde!att!osu-cis!tut.cis.ohio-state.edu!mailrus!iuvax!bsu-cs!dhesi From: dhesi@bsu-cs.UUCP (Rahul Dhesi) Newsgroups: comp.lang.c Subject: Re: hardcoded constants Message-ID: <5212@bsu-cs.UUCP> Date: 16 Dec 88 21:13:28 GMT References: <1988Dec8.173158.11839@utzoo.uucp> <846@starfish.Convergent.COM> <9134@smoke.BRL.MIL> <1988Dec13.172306.16195@utzoo.uucp> <5146@bsu-cs.UUCP> <1988Dec15.190331.2986@utzoo.uucp> Reply-To: dhesi@bsu-cs.UUCP (Rahul Dhesi) Organization: CS Dept, Ball St U, Muncie, Indiana Lines: 11 In article <1988Dec15.190331.2986@utzoo.uucp> henry@utzoo.uucp (Henry Spencer) writes: [But how about] about things like (in a function to concatenate two strings with a '/' in between): foo = malloc(strlen(a)+strlen(b)+2); /* 2 for '/' '\0' */ You are right. This is a valid exception to my suggestion, and it had not occurred to me. -- Rahul Dhesi UUCP: !{iuvax,pur-ee}!bsu-cs!dhesi