Feb 23, 2004 #1 home666 Programmer Feb 23, 2004 5 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 Jul 11, 2002 6,828 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 Feb 23, 2004 5 IT I mean the maximum size of a std::string. Thank you for your reply. Upvote 0 Downvote
Feb 24, 2004 #4 Salem Programmer Apr 29, 2003 2,455 GB Probably greater than the amount of memory you have in your machine. -- Upvote 0 Downvote
Feb 24, 2004 #5 chipperMDW Programmer Mar 24, 2002 1,268 US Code: size_t max_std_string_size() { std::string s; return s.max_size(); } Upvote 0 Downvote