strndup with 1000