calvados/do_open_file.c

25 lines
370 B
C
Raw Normal View History

2017-03-14 04:04:47 +00:00
#include <gtk/gtk.h>
#include <gdk/gdkkeysyms.h>
2017-04-18 19:15:24 +00:00
#include <string.h>
2017-03-14 04:04:47 +00:00
#include "calvados.h"
2017-04-18 19:15:24 +00:00
extern char *open_file_ptr;
2017-03-14 04:04:47 +00:00
/*
*
* do_open_file()
*
* Open a file.
*
*/
void do_open_file(char *filename)
{
/* --- Display message --- */
g_print("Open file function goes here.\n");
2017-04-18 19:15:24 +00:00
g_print("filename=%s\n", filename);
2019-01-25 15:07:40 +00:00
strncpy(open_file_ptr, filename, 255);
2017-03-14 04:04:47 +00:00
}