/* Library for ftpd clients.(libftp) Copyright by Oleg Orel All rights reserved. This library is desined for free, non-commercial software creation. It is changeable and can be improved. The author would greatly appreciate any advises, new components and patches of the existing programs. Commercial usage is also possible with participation of it's author. */ #include "FtpLibrary.h" #define C2I(n) ((int)((n)-'0')) int FtpArchie ( char *what, ARCHIE *result, int len) { FILE *archie; String cmd,tmp; int i; bzero(result,sizeof(result[0])*len); sprintf(cmd,"archie -l -m %d %s",len,what); if ((archie = popen(cmd,"r"))==NULL) return 0; for(i=0;i