Skip to content

Instantly share code, notes, and snippets.

@tuzhucheng
Created December 14, 2017 21:09
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save tuzhucheng/39204c7184835e28b8558252749bf2b1 to your computer and use it in GitHub Desktop.
Save tuzhucheng/39204c7184835e28b8558252749bf2b1 to your computer and use it in GitHub Desktop.
LaTeX code snippet from USENIX latex template
{\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