diff lib/misc.c @ 244:afbbc72b73e2

2003-8-3 Brian Masney <masneyb@gftp.org> * lib/local.c (local_put_file) - specify an initial file creation mode of 0644 * lib/misc.c lib/gftp.h - added gftp_parse_file_size(). This function works correctly for files greater than 2.1GB * lib/rfc959.c (rfc959_get_file) lib/protocols.c lib/rfc2068.c lib/rfc959.c - use gftp_parse_file_size() * lib/protocols.c lib/gftp.h (gftp_get_file, gftp_put_file, gftp_transfer_file) - changed type of startsize paramter from size_t to off_t
author masneyb
date Sun, 03 Aug 2003 18:44:29 +0000
parents b42e7233533a
children 41af60bc1f88
line wrap: on
line diff
--- a/lib/misc.c	Fri Aug 01 01:47:54 2003 +0000
+++ b/lib/misc.c	Sun Aug 03 18:44:29 2003 +0000
@@ -1236,3 +1236,14 @@
 
 #endif
 
+
+off_t
+gftp_parse_file_size (char *str)
+{
+#if defined (_LARGEFILE_SOURCE)
+  return (strtoll (str, NULL, 10));
+#else
+  return (strtol (str, NULL, 10));
+#endif
+}
+