Sha256: b6f461b4ce84f2dc90cc501b22e6ec5c5198e4fc67f6e9918efabeead10f9e0f

Contents?: true

Size: 234 Bytes

Versions: 8

Compression:

Stored size: 234 Bytes

Contents

#include <cstdlib>
#include <cstring>

namespace Sass {
  using namespace std;

  char* copy_c_str(const char* orig)
  {
    char* copy = (char*) malloc(sizeof(char) * strlen(orig) + 1);
    strcpy(copy, orig);
    return copy;
  }
}

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sassc-0.0.9 ext/libsass/copy_c_str.cpp
sassc-0.0.8 ext/libsass/copy_c_str.cpp
sassc-0.0.7 ext/libsass/copy_c_str.cpp
sassc-0.0.6 ext/libsass/copy_c_str.cpp
sassc-0.0.5 ext/libsass/copy_c_str.cpp
sassc-0.0.4 ext/libsass/copy_c_str.cpp
sassc-0.0.2 ext/libsass/copy_c_str.cpp
sassc-0.0.1 ext/libsass/copy_c_str.cpp