General Solution
There are always some steps you can take to ensure that your string_view will work with third party APIs. Find out more below.
If your API supports only null-terminated strings and you cannot switch to a function that takes additional count or size parameter, then you need to convert a view into the string.
For example:
Get hands-on with 1400+ tech skills courses.