summaryrefslogtreecommitdiff
path: root/platform/x11/x11_main.c
diff options
context:
space:
mode:
Diffstat (limited to 'platform/x11/x11_main.c')
-rw-r--r--platform/x11/x11_main.c11
1 files changed, 11 insertions, 0 deletions
diff --git a/platform/x11/x11_main.c b/platform/x11/x11_main.c
index 481adce1..0bcb98f4 100644
--- a/platform/x11/x11_main.c
+++ b/platform/x11/x11_main.c
@@ -281,6 +281,17 @@ void winreplacefile(char *source, char *target)
rename(source, target);
}
+void wincopyfile(char *source, char *target)
+{
+ char *buf = malloc(strlen(source)+strlen(target)+4);
+ if (buf)
+ {
+ sprintf(buf, "cp %s %s", source, target);
+ system(buf);
+ free(buf);
+ }
+}
+
void cleanup(pdfapp_t *app)
{
fz_context *ctx = app->ctx;