home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Usenet 1994 October
/
usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso
/
misc
/
volume38
/
libftp
/
part01
/
FtpRead.c
< prev
next >
Wrap
C/C++ Source or Header
|
1993-07-13
|
414b
|
31 lines
#include "FtpLibrary.h"
int FtpRead(FTP *con)
{
int c;
if ( con -> mode == 'I' )
return getc(con->data);
if ( con->ch != EOF )
{
c=con->ch;
con->ch=EOF;
return c;
}
c=getc(con->data);
if ( c == Ctrl('M') )
{
c = getc ( con->data);
if ( c == Ctrl('J') )
return '\n';
con->ch = c;
return Ctrl('M');
}
return c;
}