home *** CD-ROM | disk | FTP | other *** search
/ Usenet 1994 October / usenetsourcesnewsgroupsinfomagicoctober1994disk2.iso / misc / volume38 / libftp / part01 / FtpGetString.c < prev    next >
C/C++ Source or Header  |  1993-07-13  |  254b  |  16 lines

  1. #include "FtpLibrary.h"
  2.  
  3. STATUS FtpGetString(FTP *con ,char * str )
  4. {
  5.   int i=0;
  6.   while ( (str[i]=FtpRead(con)) != '\n' && str[i] != EOF ) i++;
  7.   if ( str[i] != EOF )
  8.     { 
  9.       str[i] = '\0';
  10.       return i;
  11.     }
  12.   str[i] = '\0';
  13.   return EOF;
  14. }
  15.   
  16.