Short lived strings
Eina

API for short lived strings (thread- and scope-local)

API for short lived strings (thread- and scope-local)

This set of APIs provide a convenience feature to create and return strings that are meant to be consumed in the local scope of the calling code block. The lifecycle of those strings is bound to the loop of the current thread or until the clear function is called explicitly.

These strings will be automatically deleted.

These functions shall return NULL only if out of memory.

Do not call free or any similar function on a string created with this API!

Since
  1.19