Main Page   File List   File Members  

io.c File Reference

#include <stdio.h>
#include <unistd.h>
#include <gtk/gtk.h>
#include "io.h"

Functions

gint read_program (gchar *filename)
gint write_program (gchar *filename)

Variables

s_turtle my_turtle

Detailed Description

Author:
Guillaume Bour. 2000/2001
Version:
0.1
Date:
2000/07/21
read/write functions


Function Documentation

gint read_program gchar *    filename
 

read a logo program, and print it into the text area.

Remarks:
+ the program current filename is the to the opened one
Parameters:
filename  the file name
Returns:
the status (ok/nok)

gint write_program gchar *    filename
 

Write the current logo program into a file.

Remarks:
+ Erase the content of the file if not empty + the new filename could be different of the program current filename
If it is the case, the current filename is set to the new one
Parameters:
filename  the file name
Returns:
the status (ok/nok)


Generated on Tue Aug 6 13:21:20 2002 for lafontaine by doxygen1.2.15