Added comment about get_scaled usage.

svn path=/trunk/; revision=2739
This commit is contained in:
Benoît Dejean
2008-04-21 18:59:23 +00:00
parent c1b95643a8
commit cd950bbf73

View File

@@ -61,7 +61,11 @@ skip_line (const char *p)
return (char *) (*p ? p+1 : p);
}
/*
* Smart strtoul which handles binary suffixes
* e.g: get_scaled("Size: 32 kB", "Size:") == 32768
* key can be NULL if there's not prefix to strip (or prefix size is known
*/
unsigned long long
get_scaled(const char *buffer, const char *key);