Subversion Repositories Kolibri OS

Rev

Details | Last modification | View Log | RSS feed

Rev Author Line No. Line
4973 right-hear 1
/* Copyright (C) 1995 DJ Delorie, see COPYING.DJ for details */
2
#include 
3
#include 
4
 
5
char *
6
strdup(const char *_s)
7
{
8
  char *rv;
9
  if (_s == 0)
10
    return 0;
11
  rv = (char *)malloc(strlen(_s) + 1);
12
  if (rv == 0)
13
    return 0;
14
  strcpy(rv, _s);
15
  return rv;
16
}