summaryrefslogtreecommitdiffstats
path: root/src/util/strndup.h
Commit message (Collapse)AuthorAgeFilesLines
* util: Fix strndup prototype on C++.Jose Fonseca2015-09-291-1/+9
| | | | Trivial.
* util: implement strndup for WIN32Samuel Iglesias Gonsalvez2015-09-291-0/+32
v2: - Add strndup.h to Makefile.sources (Emil) - Use calloc instead of malloc (Emil). - Check if allocation fails (Emil, Jose) - Add '#pragma once' and include stdlib.h to strndup.h (Jose) Bugzilla: https://bugs.freedesktop.org/show_bug.cgi?id=92124 Reviewed-by: Jose Fonseca <[email protected]>