self provided strndup & strdup
Merge pull request #1 from CindyLinz/master

self provided strndup & strdup