]> granicus.if.org Git - imagemagick/blob - Magick++/lib/Functions.cpp
(no commit message)
[imagemagick] / Magick++ / lib / Functions.cpp
1 // This may look like C code, but it is really -*- C++ -*-
2 //
3 // Copyright Bob Friesenhahn, 1999, 2002, 2003
4 //
5 // Simple C++ function wrappers for ImageMagick equivalents
6 //
7
8 #define MAGICKCORE_IMPLEMENTATION  1
9 #define MAGICK_PLUSPLUS_IMPLEMENTATION 1
10
11 #include "Magick++/Include.h"
12 #include <string>
13
14 using namespace std;
15
16 #include "Magick++/Functions.h"
17
18 // Clone C++ string as allocated C string, de-allocating any existing string
19 void Magick::CloneString( char **destination_, const std::string &source_ )
20 {
21   MagickCore::CloneString( destination_, source_.c_str() );
22 }