1 /* 2 * Copyright (C) 2001, 2002, and 2003 Roy Keene 3 * 4 * This program is free software; you can redistribute it and/or 5 * modify it under the terms of the GNU General Public License 6 * as published by the Free Software Foundation; either version 2 7 * of the License, or (at your option) any later version. 8 * 9 * This program is distributed in the hope that it will be useful, 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 11 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the 12 * GNU General Public License for more details. 13 * 14 * You should have received a copy of the GNU General Public License 15 * along with this program; if not, write to the Free Software 16 * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. 17 * 18 * email: dact@rkeene.org 19 */ 20 21 #ifndef _PARSE_C 22 #define _PARSE_C 23 #include "dact.h" 24 #ifdef HAVE_UNISTD_H 25 #include <unistd.h> 26 #endif 27 28 uint32_t atoi2(const char *n); 29 int parse_url(const char *url, char *scheme, char *username, char *password, char *host, int *port, unsigned char *file); 30 void strtolower(char *str); 31 char *parse_url_subst(const char *src, const char *fname); 32 char *parse_url_subst_dist(void); 33 char *mime64(unsigned char *str); 34 char *mimes64(unsigned char *str, int *size); 35 char *demime64(unsigned char *str); 36 int32_t read_f(int fd, void *buf, size_t count); 37 uint32_t hash_fourbyte(unsigned char *str, const char term); 38 #endif |