Feb 23, 2004 #1 home666 Programmer Joined Feb 23, 2004 Messages 5 Location IT I'd like know string max length in linux c++ (linux release Red Hat 9) Sorry for my english! Thanks!!
I'd like know string max length in linux c++ (linux release Red Hat 9) Sorry for my english! Thanks!!
Feb 24, 2004 #2 xwb Programmer Joined Jul 11, 2002 Messages 6,828 Location GB Do you mean the maximum number of characters that can be allocated to a char* or the maximum size of a std::string Upvote 0 Downvote
Do you mean the maximum number of characters that can be allocated to a char* or the maximum size of a std::string
Feb 24, 2004 Thread starter #3 home666 Programmer Joined Feb 23, 2004 Messages 5 Location IT I mean the maximum size of a std::string. Thank you for your reply. Upvote 0 Downvote
Feb 24, 2004 #4 Salem Programmer Joined Apr 29, 2003 Messages 2,455 Location GB Probably greater than the amount of memory you have in your machine. -- Upvote 0 Downvote
Feb 24, 2004 #5 chipperMDW Programmer Joined Mar 24, 2002 Messages 1,268 Location US Code: size_t max_std_string_size() { std::string s; return s.max_size(); } Upvote 0 Downvote
Feb 25, 2004 Thread starter #6 home666 Programmer Joined Feb 23, 2004 Messages 5 Location IT Thanks at all! Upvote 0 Downvote