Eina: add eina_strndup() API as inlined function
authorVincent Torri <vincent.torri@gmail.com>
Tue, 30 Apr 2019 15:37:54 +0000 (15:37 +0000)
committerHermet Park <hermetpark@gmail.com>
Wed, 8 May 2019 04:25:02 +0000 (13:25 +0900)
commit1ac12ed252f7b28d103ed6710f45376d27091c59
tree113266c3297661fde602ff0d0b9b05cfe31976a4
parent29152d0d2dbf7f46fb9248576319ea3b2f74f6a5
Eina: add eina_strndup() API as inlined function

this add strndup implementation that does not seg fault when string is NULL.
This also implements strndup on Windows.

Reviewed-by: Cedric BAIL <cedric.bail@free.fr>
Differential Revision: https://phab.enlightenment.org/D8790
src/lib/eina/eina_inline_str.x
src/lib/eina/eina_str.h