hardcoded constants
Rahul Dhesi
dhesi at bsu-cs.UUCP
Sat Dec 17 07:13:28 AEST 1988
In article <1988Dec15.190331.2986 at utzoo.uucp> henry at 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: <backbones>!{iuvax,pur-ee}!bsu-cs!dhesi
More information about the Comp.lang.c
mailing list