Am 15.09.2010 um 14:23 schrieb address@hidden:
[...]
+/*
+ * Convert string to bytes, allowing either K/k for KB, M/m for MB,
+ * G/b for GB or T/t for TB. Default without any postfix is MB.
^^^ typo
+ * End pointer will be returned in *end, if end is valid.
+ * Return 0 on error.
+ */
You seem to be refactoring existing code into this function, but the
use of such suffixes usually brings up the question whether it's
factor 1024 or 1000.
Here you're using 1024 apparently. If you don't want the user dealing
with (imo ugly) Ki/Mi/Gi/Ti units this should at least be documented
accordingly: G/g for GiB, etc. or G/g for GB = 1024 MB, etc.
Andreas