Organization: U of Florida. Computer Science Dept.
Lines: 23
Nntp-Posting-Host: reef.cis.ufl.edu
Hi,
I am new for this language. I have learned the TCL syntax and I am able to use the library to write small programmes in Tk. Now I plan to write an user interface for a bunch of C codes that I have written. However I am not able get all the necessary information on how I should proceed. I have read the FAQ , talk series, man pages and the first part of the book.
For example : I have the following sample code which I have to use in Tcl as a command that I can use in Tk.
void trial (int K, int M)
{
if(M==1){
for (i=0;i<K;i++)
printf("%d \n",K);
}
else {
for (i=0;i<K;i++)
printf("%d \n",K*(K-1));
}
}
How do I convert TRIAL in a Tcl command. Do I have recompile everything (Tcl );
Please Help.
MALHAR
ps : This just a sample code. I think I can do that in Tcl/Tk. BUT I want to use "C".