1
0

string_dup.c 335 B

123456789101112131415161718
  1. /*
  2. * string_dup.c
  3. */
  4. #include "private.h"
  5. #include <string.h>
  6. /*--------------------------------------------------------- */
  7. char *
  8. lub_string_dup(const char *string)
  9. {
  10. char *result = NULL;
  11. if(NULL != string)
  12. {
  13. lub_string_cat(&result,string);
  14. }
  15. return result;
  16. }
  17. /*--------------------------------------------------------- */