misc.h

Go to the documentation of this file.
00001 
00005 /* Copyright 2006, 2007 Andre Beausoleil.
00006  *
00007  * This file is part of stftp, a "simple" terminal FTP client.
00008  * The author can be reached at <abeausoleil@gmail.com>
00009  *
00010  * This program is free software; you can redistribute it and/or modify
00011  * it under the terms of the GNU General Public License as published by
00012  * the Free Software Foundation; either version 2 of the License, or
00013  * (at your option) any later version.
00014  *
00015  * This program is distributed in the hope that it will be useful,
00016  * but WITHOUT ANY WARRANTY; without even the implied warranty of
00017  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00018  * GNU General Public License for more details.
00019  *
00020  * You should have received a copy of the GNU General Public License
00021  * along with this program; if not, write to the Free Software
00022  * Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA  02110-1301  USA
00023  */
00024 
00026 struct sock_hostport { 
00027         struct hostent *he; 
00028         int port; 
00029         char *name; 
00030 };
00031 
00033 struct parse_list {
00034         struct listparse *lp; 
00035         struct parse_list *next; 
00036 };
00037 
00038 void p_help();
00039 void strip_nl(char *data);
00040 int str_begin(char *src,char *pat);
00041 void parse_pwd(char *pwd,char *dir);
00042 void p_header(char *host, char *dir);
00043 void nullify(struct parse_list *head);
00044 void fnullify(struct parse_list *head);
00045 struct parse_list *fscan(struct parse_list *head, char *filter);

Generated by  doxygen 1.4.7.
SourceForge.net Logo