Re: simple string operation question

From: Henrik Nordstrom <hno@dont-contact.us>
Date: Mon, 2 Sep 2002 21:19:49 +0200

C programming...

You will need to print the data into a string.. C does not have any string
processing in the core language like most modern languages..

I would recommend using a MemBuf and the memBufPrintf call for constructing
this string.. saves you from the hassle of memory management.

Regards
Henrik

PsychoTekk .de wrote:
> hi all,
> i try to put some data into the string "email_data":
>
> static char **email_data = NULL;
> email_data = "?subject=CacheErrorInfo%20-%20",
> errorPageName(err->type),"&body=CacheHost%3A%20",getMyHostname();
>
> now in perl the "," between the single elements would be fine
> to add them all to this one string, but i only get
> "?subject=CacheErrorInfo%20-%20" into email_data.
>
> do i have to use another operator or is it just not possible
> to put errorPageName(err->type) into a string this way?
> if so, what type would i have to declare email_data as to
> make it work?
>
> thanks in advance!
> Clemens
Received on Mon Sep 02 2002 - 13:20:06 MDT

This archive was generated by hypermail pre-2.1.9 : Tue Dec 09 2003 - 16:16:25 MST