代码搜索:readline
找到约 2,619 项符合「readline」的源代码
代码结果 2,619
www.eeworm.com/read/158402/11621045
c readline.c
#include "stdio.h"
#include "stdlib.h"
void readline(char *s, int maxlength) {
int i = 0;
while (1) {
char c = getch();
/* if end of line, finish up */
if (c == '\n') {
putchar
www.eeworm.com/read/157593/11685008
gif readline.gif
www.eeworm.com/read/154273/11975663
gif readline.gif
www.eeworm.com/read/153958/11997932
h readline.h
/*
readline.h
by bill kendrick
kendrick@zippy.sonoma.edu
http://zippy.sonoma.edu/kendrick/
reads a line using fgets
*/
#include
void readline(FILE * fi, char *
www.eeworm.com/read/153958/11997965
c readline.c
/*
readline.c
Hacked for Free Chat to allow for BINARY-FTP'd files (strips &M)
by bill kendrick
kendrick@zippy.sonoma.edu
http://zippy.sonoma.edu/kendrick/
reads a line usi
www.eeworm.com/read/339831/12202014
c readline.c
#include
#include
#define BUFLEN 1024
static char buf[BUFLEN];
char *
readline(const char *prompt)
{
int i, c, echoing;
if (prompt != NULL)
cprintf("%s", prompt);
www.eeworm.com/read/129891/14218882
c readline.c
/* include readline */
#include "unp.h"
static ssize_t
my_read(int fd, char *ptr)
{
static int read_cnt = 0;
static char *read_ptr;
static char read_buf[MAXLINE];
if (read_cnt
www.eeworm.com/read/129891/14218905
c readline.c
/* include readline1 */
#include "unpthread.h"
static pthread_key_t rl_key;
static pthread_once_t rl_once = PTHREAD_ONCE_INIT;
static void
readline_destructor(void *ptr)
{
free(ptr);
}
static void
www.eeworm.com/read/129891/14219625
c readline.c
/* include readline */
#include "unp.h"
ssize_t
readline(int fd, void *vptr, size_t maxlen)
{
ssize_t n, rc;
char c, *ptr;
ptr = vptr;
for (n = 1; n < maxlen; n++) {
if ( (rc = read(fd, &c, 1)