代码搜索:readline
找到约 2,619 项符合「readline」的源代码
代码结果 2,619
www.eeworm.com/read/131315/5938732
c manexamp.c
/* manexamp.c -- The examples which appear in the documentation are here. */
#include
#include
/* **************************************************************** */
www.eeworm.com/read/131315/5938768
bat configure.bat
@echo off
if "%1" == "go32" goto h8300
if "%1" == "h8/300" goto h8300
echo Specify one of [ go32 h8/300 ] on command line
goto exit
:go32
echo Configuring readline for go32
copy Makefile.dos Makefile
www.eeworm.com/read/127694/6002417
c str_echo.c
#include "unp.h"
void
str_echo(int sockfd)
{
ssize_t n;
char line[MAXLINE];
for ( ; ; ) {
if ( (n = Readline(sockfd, line, MAXLINE)) == 0)
return; /* connection closed by other end */
www.eeworm.com/read/127694/6002427
c str_cli.c
#include "unp.h"
void
str_cli(FILE *fp, int sockfd)
{
char sendline[MAXLINE], recvline[MAXLINE];
while (Fgets(sendline, MAXLINE, fp) != NULL) {
Writen(sockfd, sendline, strlen(sendline));
if
www.eeworm.com/read/127694/6002869
makefile
include ../Make.defines
PROGS = accept_eintr test1 treadline1 treadline2 treadline3 \
tsnprintf tisfdtype
TEST1_OBJS = test1.o funcs.o
all: ${PROGS}
test1: ${TEST1_OBJS}
${CC} ${CFLAGS} -o $@
www.eeworm.com/read/127694/6002875
c treadline2.c
#include "unp.h"
int
main(int argc, char **argv)
{
int count = 0;
ssize_t n;
char recvline[MAXLINE];
while ( ( n = readline(STDIN_FILENO, recvline, MAXLINE)) > 0)
count++;
printf("%d lines\n
www.eeworm.com/read/127694/6002881
c treadline1.c
#include "unp.h"
int
main(int argc, char **argv)
{
int count = 0;
ssize_t n;
char recvline[MAXLINE];
while ( ( n = readline(STDIN_FILENO, recvline, MAXLINE)) > 0)
count++;
printf("%d lines\n
www.eeworm.com/read/127694/6002924
c str_cli11.c
#include "unp.h"
void
str_cli(FILE *fp, int sockfd)
{
char sendline[MAXLINE], recvline[MAXLINE];
while (Fgets(sendline, MAXLINE, fp) != NULL) {
Writen(sockfd, sendline, 1);
sleep(1);
Writen
www.eeworm.com/read/127694/6002931
c str_cli08.c
#include "unp.h"
void
str_cli(FILE *fp, int sockfd)
{
char sendline[MAXLINE], recvline[MAXLINE];
while (Fgets(sendline, MAXLINE, fp) != NULL) {
Writen(sockfd, sendline, strlen(sendline));
if
www.eeworm.com/read/126074/6018543
clp compline.clp
(deffunction compare-files (?base-file ?test-file ?output)
(open ?base-file base)
(open ?test-file test)
(bind ?i 0)
(bind ?difference FALSE)
(bind ?base-line (readline base))
(bind