Jump to content

strings


coreyh2
 Share

Recommended Posts

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.

Link to comment
Share on other sites

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).
Link to comment
Share on other sites

Guest
This topic is now closed to further replies.
 Share

×
×
  • Create New...