1998-02-17 07:57:29 +00:00
|
|
|
--- src/show_image.c.orig Sun Feb 8 04:09:16 1998
|
1998-06-03 07:45:55 +00:00
|
|
|
+++ src/show_image.c Wed Jun 3 09:38:49 1998
|
|
|
|
@@ -13,21 +13,6 @@
|
1998-02-17 07:57:29 +00:00
|
|
|
|
1998-06-03 07:45:55 +00:00
|
|
|
extern OUTPUT_PAGE_S *outputPage;
|
1998-02-17 07:57:29 +00:00
|
|
|
|
1998-06-03 07:45:55 +00:00
|
|
|
-
|
|
|
|
-/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
1998-02-17 07:57:29 +00:00
|
|
|
-char *truncate(char *string, char endat)
|
1998-06-03 07:45:55 +00:00
|
|
|
-{
|
|
|
|
- char *endchar;
|
|
|
|
-
|
|
|
|
-
|
|
|
|
- if ((string != NULL) && (endchar = strrchr(string, endat)) != NULL)
|
|
|
|
- *endchar = '\0';
|
|
|
|
-
|
|
|
|
- return (string);
|
|
|
|
-
|
|
|
|
-}
|
|
|
|
-
|
|
|
|
-
|
|
|
|
/* * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * */
|
|
|
|
/*
|
|
|
|
** Display the image after rendering. Some OS do not allow
|
|
|
|
@@ -45,7 +30,7 @@
|
1998-02-17 07:57:29 +00:00
|
|
|
|
|
|
|
|
|
|
|
strcpy(temp, pov.input_file_name);
|
|
|
|
- sprintf(imgfile, "%s", truncate(temp, '.'));
|
|
|
|
+ sprintf(imgfile, "%s", strtruncate(temp, '.'));
|
|
|
|
|
|
|
|
|
|
|
|
/*
|