From: Dave Neary (dave.neary at domain palamon.ie)
Date: Thu 03 May 2001 - 11:21:32 IST
Dave Neary wrote:
Sorry - I should give up on this now and stop digging a hole for myself,
but...
> strcat((msg=strdup(strvar1),
> (msg=realloc(msg,strlen(msg)+strlen(strvar2)+1))==NULL?
> bad_stuff():msg),strvar2);
works :) I was only confusing myself with the whole "order of
evaluation" red herring, since the first arg doesn't go near the second
arg. But anyone who ever used this should be shot :)
Cheers,
Dave.
-- David Neary, E-Mail dave.neary at domain palamon.ie Palamon Technologies Ltd. Phone +353-1-634-5059
This archive was generated by hypermail 2.1.6 : Thu 06 Feb 2003 - 13:10:10 GMT