diff --git a/api_examples/cli_operators.c b/api_examples/cli_operators.c
index 7cff593..f16be94 100644
--- a/api_examples/cli_operators.c
+++ b/api_examples/cli_operators.c
@@ -32,7 +32,7 @@
 
   MagickCoreGenesis(argv[0],MagickFalse);
 
-  cli_wand = AcquireMagickCLI((ImageInfo *)NULL,(ExceptionInfo *)NULL);
+  cli_wand = AcquireMagickCLI((ImageInfo *) NULL,(ExceptionInfo *) NULL);
 
   CLISettingOptionInfo    (cli_wand, "-size", "100x100");
   CLISpecialOperator      (cli_wand, "-read", "xc:red");
diff --git a/api_examples/cli_process.c b/api_examples/cli_process.c
index e7be3b2..1eb662d 100644
--- a/api_examples/cli_process.c
+++ b/api_examples/cli_process.c
@@ -32,11 +32,11 @@
                    "(", "rose:", "-rotate", "-90", ")",
                    "+append", "show:", NULL };
 
-  for(arg_count = 0; args[arg_count] != (char *)NULL; arg_count++);
+  for(arg_count = 0; args[arg_count] != (char *) NULL; arg_count++);
 
 
   MagickCoreGenesis(argv[0],MagickFalse);
-  cli_wand = AcquireMagickCLI((ImageInfo *)NULL,(ExceptionInfo *)NULL);
+  cli_wand = AcquireMagickCLI((ImageInfo *) NULL,(ExceptionInfo *) NULL);
 
   ProcessCommandOptions(cli_wand, arg_count, args, 0, MagickCommandOptionFlags);
 
diff --git a/api_examples/magick_command.c b/api_examples/magick_command.c
index c732cbe..1b97345 100644
--- a/api_examples/magick_command.c
+++ b/api_examples/magick_command.c
@@ -39,7 +39,7 @@
                      "(", "rose:", "-rotate", "-90", ")",
                      "+append", "show:", NULL };
 
-    for(arg_count = 0; args[arg_count] != (char *)NULL; arg_count++);
+    for(arg_count = 0; args[arg_count] != (char *) NULL; arg_count++);
 
     (void) MagickImageCommand(image_info, arg_count, args, NULL, exception);