strings

Error message

Deprecated function: implode(): Passing glue string after array is deprecated. Swap the parameters in drupal_get_feeds() (line 394 of /var/www/pied-piper.ermarian.net/includes/common.inc).
AuthorTopic: strings
Apprentice
Member # 4786
Profile #0
How much is string variable like a pointer to a char in C?

After I call get_buffer_text and then clear_buffer is the variable string still safe to use?

I'm overly paranoid because I've crashed C programs often by not correctly handling memory and strings.
Posts: 3 | Registered: Tuesday, July 27 2004 07:00
Off With Their Heads
Member # 4045
Profile Homepage #1
quote:
Originally written by coreyh2:

How much is string variable like a pointer to a char in C?
Not much, from what I understand.

You can use a string variable, clear it, and re-use it as much as you want. You'll only kill BoA if you make the string more than 256 characters long (including beginning and ending quotes).

--------------------
Arancaytar: Every time you ask people to compare TM and Kel, you endanger the poor, fluffy kittens.
Smoo: Get ready to face the walls!
Ephesos: In conclusion, yarr.

Kelandon's Pink and Pretty Page!!: the authorized location for all things by me
The Archive of all released BoE scenarios ever
Posts: 7968 | Registered: Saturday, February 28 2004 08:00
The Establishment
Member # 6
Profile #2
You're worrying too much. :) The best way to test whether you will break things is to simply try them. The string buffer is a pretty versatile thing as far as I have experienced.

--------------------
Your flower power is no match for my glower power!
Posts: 3726 | Registered: Tuesday, September 18 2001 07:00