Page MenuHomePhabricator

Eina: add eina_strndup() API as inlined function
ClosedPublic

Authored by vtorri on Apr 30 2019, 8:37 AM.

Details

Summary

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

Test Plan

compilation

Diff Detail

Repository
rEFL core/efl
Lint
Automatic diff as part of commit; lint not applicable.
Unit
Automatic diff as part of commit; unit tests not applicable.
vtorri created this revision.Apr 30 2019, 8:37 AM
vtorri requested review of this revision.Apr 30 2019, 8:37 AM
vtorri edited the summary of this revision. (Show Details)Apr 30 2019, 8:39 AM
vtorri edited projects, added efl (efl-1.23); removed efl.
cedric accepted this revision.May 1 2019, 3:23 PM
This revision is now accepted and ready to land.May 1 2019, 3:23 PM
This revision was automatically updated to reflect the committed changes.