Created
December 14, 2017 21:09
-
-
Save tuzhucheng/39204c7184835e28b8558252749bf2b1 to your computer and use it in GitHub Desktop.
LaTeX code snippet from USENIX latex template
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
{\tt \small | |
\begin{verbatim} | |
int wrap_fact(ClientData clientData, | |
Tcl_Interp *interp, | |
int argc, char *argv[]) { | |
int result; | |
int arg0; | |
if (argc != 2) { | |
interp->result = "wrong # args"; | |
return TCL_ERROR; | |
} | |
arg0 = atoi(argv[1]); | |
result = fact(arg0); | |
sprintf(interp->result,"%d",result); | |
return TCL_OK; | |
} | |
\end{verbatim} | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment