diff options
author | H. Peter Anvin <hpa@linux.intel.com> | 2011-03-02 15:07:07 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@linux.intel.com> | 2011-03-02 15:07:07 -0800 |
commit | 74ee14e31e28373f1fe93469d8d386cf9aac8014 (patch) | |
tree | c0bf6035029b103c86f0ed8727c6bf3b293f85ff /com32/include | |
parent | 051e3b687faceb1b93fbbbb186a4449d281ea371 (diff) | |
parent | a028af928b5d22c2aec9cf09916e8334ca4f694f (diff) | |
download | syslinux-74ee14e31e28373f1fe93469d8d386cf9aac8014.tar.gz |
Merge remote branch 'genec/memdisk-maxmem-for-hpa'syslinux-4.04-pre10
Diffstat (limited to 'com32/include')
-rw-r--r-- | com32/include/suffix_number.h | 41 |
1 files changed, 41 insertions, 0 deletions
diff --git a/com32/include/suffix_number.h b/com32/include/suffix_number.h new file mode 100644 index 00000000..e2349b41 --- /dev/null +++ b/com32/include/suffix_number.h @@ -0,0 +1,41 @@ +/* ----------------------------------------------------------------------- * + * + * Copyright 2007-2008 H. Peter Anvin - All Rights Reserved + * + * Permission is hereby granted, free of charge, to any person + * obtaining a copy of this software and associated documentation + * files (the "Software"), to deal in the Software without + * restriction, including without limitation the rights to use, + * copy, modify, merge, publish, distribute, sublicense, and/or + * sell copies of the Software, and to permit persons to whom + * the Software is furnished to do so, subject to the following + * conditions: + * + * The above copyright notice and this permission notice shall + * be included in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, + * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES + * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND + * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT + * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, + * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING + * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR + * OTHER DEALINGS IN THE SOFTWARE. + * + * ----------------------------------------------------------------------- */ + +/* + * suffix_number.h + * + * Definitions used to convert a string of a number with potential SI suffix + * to int-type. + */ + +#ifndef LIBUTIL_SUFFIX_NUMBER_H +#define LIBUTIL_SUFFIX_NUMBER_H + +unsigned long long suffix_number(const char *); + +#endif /* LIBUTIL_SUFFIX_NUMBER_H */ + |