- * Copyright (C) 1996-2000 Michael R. Elkins <me@mutt.org>
- * Copyright (C) 1999-2000 Thomas Roessler <roessler@does-not-exist.org>
+ * Copyright (C) 1996-2000,2007 Michael R. Elkins <me@mutt.org>
+ * Copyright (C) 1999-2005,2007 Thomas Roessler <roessler@does-not-exist.org>
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
*
* This program is free software; you can redistribute it
* and/or modify it under the terms of the GNU General Public
/* The actual library functions. */
FILE *safe_fopen (const char *, const char *);
char *mutt_concatn_path (char *, size_t, const char *, size_t, const char *, size_t);
char *mutt_concat_path (char *, const char *, const char *, size_t);
/* The actual library functions. */
FILE *safe_fopen (const char *, const char *);
char *mutt_concatn_path (char *, size_t, const char *, size_t, const char *, size_t);
char *mutt_concat_path (char *, const char *, const char *, size_t);
-char *mutt_read_line (char *, size_t *, FILE *, int *);
+char *mutt_read_line (char *, size_t *, FILE *, int *, int);
char *mutt_skip_whitespace (char *);
char *mutt_strlower (char *);
char *mutt_substrcpy (char *, const char *, const char *, size_t);
char *mutt_skip_whitespace (char *);
char *mutt_strlower (char *);
char *mutt_substrcpy (char *, const char *, const char *, size_t);
char *safe_strncat (char *, size_t, const char *, size_t);
char *safe_strdup (const char *);
char *safe_strncat (char *, size_t, const char *, size_t);
char *safe_strdup (const char *);
+/* strtol() wrappers with range checking; they return
+ * 0 success
+ * -1 format error
+ * -2 overflow (for int and short)
+ * the int pointer may be NULL to test only without conversion
+ */
+int mutt_atos (const char *, short *);
+int mutt_atoi (const char *, int *);
+int mutt_atol (const char *, long *);
+
const char *mutt_stristr (const char *, const char *);
const char *mutt_basename (const char *);
const char *mutt_stristr (const char *, const char *);
const char *mutt_basename (const char *);
int safe_rename (const char *, const char *);
int safe_symlink (const char *, const char *);
int safe_fclose (FILE **);
int safe_rename (const char *, const char *);
int safe_symlink (const char *, const char *);
int safe_fclose (FILE **);
size_t mutt_quote_filename (char *, size_t, const char *);
size_t mutt_strlen (const char *);
size_t mutt_quote_filename (char *, size_t, const char *);
size_t mutt_strlen (const char *);