strdup

From Valve Developer Community
Revision as of 08:08, 30 November 2011 by Mattshu (talk | contribs)

(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to: navigation, search

char *strdup(const char *s1)

strdup is a standard C/C++ function and is useful for duplicating strings to store them off to pointers. Remember to delete the duplicated string once you're done with it.