Re: [Qemu-devel] [PATCH 1/7] Introduce strtosz() library function to convert a string to a byte count.

2010-10-11 Thread Markus Armbruster
jes.soren...@redhat.com writes: From: Jes Sorensen jes.soren...@redhat.com strtosz() returns -1 on error. v2 renamed from strtobytes() to strtosz() as suggested by Markus. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- cutils.c | 39

Re: [Qemu-devel] [PATCH 1/7] Introduce strtosz() library function to convert a string to a byte count.

2010-10-11 Thread Jes Sorensen
On 10/11/10 10:51, Markus Armbruster wrote: jes.soren...@redhat.com writes: +/* + * Convert string to bytes, allowing either K/k for KB, M/m for MB, + * G/g for GB or T/t for TB. Default without any postfix is MB. + * End pointer will be returned in *end, if end is valid. + * Return -1 on

Re: [Qemu-devel] [PATCH 1/7] Introduce strtosz() library function to convert a string to a byte count.

2010-10-11 Thread Markus Armbruster
Jes Sorensen jes.soren...@redhat.com writes: On 10/11/10 10:51, Markus Armbruster wrote: jes.soren...@redhat.com writes: +/* + * Convert string to bytes, allowing either K/k for KB, M/m for MB, + * G/g for GB or T/t for TB. Default without any postfix is MB. + * End pointer will be returned

[Qemu-devel] [PATCH 1/7] Introduce strtosz() library function to convert a string to a byte count.

2010-10-08 Thread Jes . Sorensen
From: Jes Sorensen jes.soren...@redhat.com strtosz() returns -1 on error. v2 renamed from strtobytes() to strtosz() as suggested by Markus. Signed-off-by: Jes Sorensen jes.soren...@redhat.com --- cutils.c | 39 +++ qemu-common.h |1 + vl.c