Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- static int tcl_putquick STDVAR
- {
- char s[511], *p;
- BADARGS(2, 3, " text ?options?");
- if ((argc == 3) && egg_strcasecmp(argv[2], "-next") &&
- egg_strcasecmp(argv[2], "-normal")) {
- Tcl_AppendResult(irp, "unknown putquick option: should be one of: ",
- "-normal -next", NULL);
- return TCL_ERROR;
- }
- strncpy(s, argv[1], 510);
- s[510] = 0;
- p = strchr(s, '\n');
- if (p != NULL)
- *p = 0;
- p = strchr(s, '\r');
- if (p != NULL)
- *p = 0;
- if (argc == 3 && !egg_strcasecmp(argv[2], "-next"))
- dprintf(DP_MODE_NEXT, "%s\n", s);
- else
- dprintf(DP_MODE, "%s\n", s);
- return TCL_OK;
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement