Hi,
char *
> pg_strcat (char *dest,char *src)
> {
> /* pg_realloc is a safer function than realloc */
> dest=pg_realloc(dest,strlen(dest)+strlen(src)+1);
>
> strcat(dest,src);
> return dest;
> }
>
Postgres already has something for the above functionality.
See makeStringInfo, appendStringInfo.
Regards,
Nikhils
--
EnterpriseDB http://www.enterprisedb.com