// byte_scale
int ByteScaleCmd(Tcl_interp *interp, ... ) {
//parse arguments here
ByteScale(...);
return TCL_OK;
}
The parameters and return value of the C function should be the same
as the tcl command. For example if we have
set foo [byte_new $width $height]
we should have ByteImage *ByteNew(int width, int height)
if (...) {
x = y;
} else {
x = z;
}
while (...) {
x = y;
}
Last Updated :