Raised This Month: $ Target: $400
 0% 

#define string in string


  
 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
Frus
Senior Member
Join Date: Aug 2009
Old 01-30-2010 , 11:22   Re: #define string in string
Reply With Quote #15

Quote:
Originally Posted by p3tsin View Post
Its known but very much discouraged. You can easily overflow the buffer if the function returns an array larger than what you've allocated.
Can't you put a parameter in the function to specify the maximum length of the returned string?

EDIT: grey, isn't that function returning a single character, not a string?

Last edited by Frus; 01-30-2010 at 11:30.
Frus is offline
 



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 22:05.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode