File: yepp.c

package info (click to toggle)
yepp 0.0.5-2
  • links: PTS
  • area: main
  • in suites: etch, etch-m68k, sarge
  • size: 388 kB
  • ctags: 158
  • sloc: ansic: 1,328; makefile: 59; sh: 26
file content (28 lines) | stat: -rw-r--r-- 501 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
#include <sys/io.h>
#include <gtk/gtk.h>
#include "project.h"
#include "yepplib.h"

float cur_block, blocks;
GtkWidget* create_main_window(void);

int main(int argc, char *argv[])
{
   GtkWidget *main_window;
   
   if(iopl(3))
   {
      printf("Get IO permition. Maybe, you are not superuser(root).");
      return EXIT_FAILURE;
   }

   gtk_set_locale();
   gtk_init(&argc, &argv);

   main_window = create_main_window();
   gtk_widget_show(main_window);

   gtk_main();

   return EXIT_SUCCESS;
}