/* This file is part of SLRN. Copyright (c) 1994, 1999 John E. Davis This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #ifndef _SLRN_UTIL_H #define _SLRN_UTIL_H #include #ifdef PATH_MAX # define SLRN_MAX_PATH_LEN PATH_MAX #else # define SLRN_MAX_PATH_LEN 1024 #endif extern int slrn_dircat (char *, char *, char *); extern char *slrn_spool_dircat (char *, char *, int); extern int slrn_copy_file (char *, char *); extern int slrn_move_file (char *, char *); extern int slrn_fclose (FILE *); extern int slrn_delete_file (char *); extern int slrn_file_exists (char *); extern char *slrn_basename (char *); extern int slrn_is_absolute_path (char *); #if defined(IBMPC_SYSTEM) extern void slrn_os2_convert_path (char *); extern void slrn_os2_make_fat (char *, char *, char *); #endif extern char *slrn_simple_strtok (char *, char *); extern char *slrn_strchr (char *, char); extern char *slrn_skip_whitespace (char *s); extern char *slrn_trim_string (char *s); extern int slrn_case_strncmp (unsigned char *, unsigned char *, unsigned int); extern int slrn_case_strcmp (unsigned char *, unsigned char *); extern char *slrn_strbrk (char *, char *); extern char *slrn_safe_strmalloc (char *); extern char *slrn_safe_malloc (unsigned int); extern char *slrn_strmalloc (char *, int); extern char *slrn_strnmalloc (char *, unsigned int, int); extern char *slrn_malloc (unsigned int, int, int); extern char *slrn_realloc (char *, unsigned int, int); extern void slrn_free (char *); extern char *slrn_fix_regexp (char *); /* These declarations are here although the functions are not really defined * in util.c. */ extern void slrn_exit_error (char *, ...); char *slrn_make_from_string (void); #endif /* _SLRN_UTIL_H */