代码搜索:readline

找到约 2,619 项符合「readline」的源代码

代码结果 2,619
www.eeworm.com/read/408584/11381717

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/253533/12216476

txt 3.8.txt

Listing 3.8 Manipulating an Internal String Buffer Instead of Returning New String Objects using System; using System.Text; namespace _7_StringBuilder { class Class1 { [STAThread] static void
www.eeworm.com/read/129891/14218853

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/129891/14218874

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/129891/14219701

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/129891/14219712

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/129891/14219721

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/129891/14219799

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/129891/14219811

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/227017/14443875

cs program.cs

using System; using System.Collections.Generic; using System.Text; namespace Chapter32 { class Program { static void Main(string[] args) { //int i = (int