view lib-src/leditcfns.c @ 10748:0bee4d7bc9a4

(ange-ftp-write-region, ange-ftp-insert-file-contents) (ange-ftp-copy-file-internal): If remote host is unix, use binary mode. (ange-ftp-file-local-copy): Delete local var bin1. (ange-ftp-rename-remote-to-remote): Delete arg `binary'. (ange-ftp-rename-file): Don't pass or compute that arg.
author Richard M. Stallman <rms@gnu.org>
date Tue, 14 Feb 1995 14:28:44 +0000
parents da530eb93c1a
children 695cf19ef79e
line wrap: on
line source

#include <sgtty.h>
#include <signal.h>
#define STRLEN 100
static char str[STRLEN+1] = "%?emacs"; /* extra char for the null */

switch_to_proc(){
    char *ptr = str;
    while (*ptr) ioctl(0, TIOCSTI, ptr++);
    ioctl(0, TIOCSTI, "\n");
    kill(getpid(), SIGTSTP);
    }

set_proc_str(ptr) char *ptr; {
    if (strlen(ptr) <= STRLEN)
	strcpy(str, ptr);
    else
	printf("string too long for set-proc-str: %s\n", ptr);
    }