strings
Author | Topic: strings |
---|---|
Apprentice
Member # 4786
|
written Monday, January 2 2006 16:54
Profile
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
|
written Monday, January 2 2006 17:07
Profile
Homepage
quote: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
|
written Monday, January 2 2006 17:56
Profile
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 |