Download from here:
http://www.puppyos.net/test/
and place in mnt/home (this is where pup_save.2fs is)
Reboot computer
Save the following as test.c
If using Geany, set it it to C and test compile first
Code: Select all
/* Example C program */
int main()
char input_character;
{ int i;
for (i = 0; i < 50000; i++)
{
printf ("%d",i);
printf (" Puppy is Great\n");
}
return 0;
}
open a terminal (Right click in the open folder/directory with Rox 2.5 /Window/terminal here)
and type
Code: Select all
gcc test.c -o test
the command
Code: Select all
./test
find a good tutorial eg.
http://members.cox.net/midian/articles/ansic1.htm