diff options
author | Gene Cumm <gene.cumm@gmail.com> | 2011-02-08 19:54:20 -0500 |
---|---|---|
committer | Gene Cumm <gene.cumm@gmail.com> | 2011-02-08 19:54:20 -0500 |
commit | e86bdcd32ceb8550d0b1e59b73fb0ee243f3edad (patch) | |
tree | 6e20077b38a3c5b7de1cc32adc8d89c4b513a74b /com32/include/suffix_number.h | |
parent | 46e063f4cd54b2325eab16bfa9f52bb984e33ead (diff) | |
download | syslinux-e86bdcd32ceb8550d0b1e59b73fb0ee243f3edad.tar.gz |
com32: Move suffix_number() from libutil to libcom32
Diffstat (limited to 'com32/include/suffix_number.h')
-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 */ + |