Important Notice: Our web hosting provider recently started charging us for additional visits, which was unexpected. In response, we're seeking donations. Depending on the situation, we may explore different monetization options for our Community and Expert Contributors. It's crucial to provide more returns for their expertise and offer more Expert Validated Answers or AI Validated Answers. Learn more about our hosting issue here.

Isn Bstrlib really appropriate just for applications that are being written scratch?

0
10 Posted

Isn Bstrlib really appropriate just for applications that are being written scratch?

0
10

A. Not at all! Bstrlib is highly interoperable with standard char * strings. Complete conversion from char *’s to bstrings is usually not necessary, since the library contains key functions for mixing the two and extracting a NUL (‘\0’) terminated char * from a bstring is a trivial operation. Bstrlib also contains macros which replaces the semantics of “pointer arithmetic” with a safe superset (string segment arithmetic) of such functionality. So migrating from char * usage to Bstrlib can be done incrementally without semantic impediments.

Related Questions

What is your question?

*Sadly, we had to bring back ads too. Hopefully more targeted.

Experts123