/src/graphicsmagick/Magick++/lib/Functions.cpp
Line | Count | Source |
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 MAGICK_IMPLEMENTATION |
9 | | #define MAGICK_PLUSPLUS_IMPLEMENTATION |
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 | 0 | { |
21 | 0 | MagickLib::CloneString( destination_, source_.c_str() ); |
22 | 0 | } |