#include "magick/client.h"
#include "magick/string_.h"
\f
-/*
- Static declaractions.
-*/
-static char
- client_name[MaxTextExtent] = "ImageMagick",
- client_path[MaxTextExtent] = "";
-\f
/*
%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
% %
*/
MagickExport const char *GetClientName(void)
{
- return(client_name);
+ return(SetClientName((const char *) NULL));
}
\f
/*
*/
MagickExport const char *GetClientPath(void)
{
- return(client_path);
+ return(SetClientPath((const char *) NULL));
}
\f
/*
%
% A description of each parameter follows:
%
-% o client_name: SetClientName() returns the current client name.
-%
% o name: Specifies the new client name.
%
*/
MagickExport const char *SetClientName(const char *name)
{
+ static char
+ client_name[MaxTextExtent] = "Magick";
+
if ((name != (char *) NULL) && (*name != '\0'))
(void) CopyMagickString(client_name,name,MaxTextExtent);
return(client_name);
%
% A description of each parameter follows:
%
-% o client_path: Method SetClientPath returns the current client path.
-%
% o path: Specifies the new client path.
%
-%
*/
MagickExport const char *SetClientPath(const char *path)
{
+ static char
+ client_path[MaxTextExtent] = "";
+
if ((path != (char *) NULL) && (*path != '\0'))
(void) CopyMagickString(client_path,path,MaxTextExtent);
return(client_path);