How can I return in a GTK function in C a list of characters with GSList? | Sololearn: Learn to code for FREE!
New course! Every coder should learn Generative AI!
Try a free lesson
0

How can I return in a GTK function in C a list of characters with GSList?

I need to save the path of each file contained in a folder This is my code: void on_file1_file_set(GtkFileChooserButton *chooser){ GSList filelist; printf("file name = %s\n", gtk_file_chooser_get_filename (GTK_FILE_CHOOSER(chooser))); printf("folder uri = %s\n", gtk_file_chooser_get_uri(GTK_FILE_CHOOSER(chooser))); printf("folder filenames = %s\n", gtk_file_chooser_get_filenames(GTK_FILE_CHOOSER(chooser))); return filelist; }

23rd Sep 2022, 3:10 PM
Fidel Alejandro Sanchez Fernandez
Fidel Alejandro Sanchez Fernandez - avatar
0 Answers