14 changed files with 101 additions and 415 deletions
@ -1,48 +1,30 @@
|
||||
// util/strconv.h, version 1.1.2
|
||||
// util/strconv.h
|
||||
// String conversion header file from libutil
|
||||
// Copyright (C) 2021, Jakob Wakeling
|
||||
// All rights reserved.
|
||||
|
||||
/*
|
||||
OMKOV Permissive Licence, version 1.0 |
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy of |
||||
this software and associated documentation files (the "Software"), to deal with |
||||
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: |
||||
|
||||
* Redistributions of source code must retain the above copyright notice, this |
||||
list of conditions and the following disclaimers. |
||||
* Redistributions in binary form must reproduce the above copyright notice, this |
||||
list of conditions and the following disclaimers in the documentation and/or |
||||
other materials provided with the distribution. |
||||
* Neither the names of the copyright holders, nor the names of its contributors |
||||
may be used to endorse or promote products derived from this Software without |
||||
specific prior written permission. |
||||
|
||||
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 COPYRIGHT |
||||
HOLDERS OR CONTRIBUTORS 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 WITH THE SOFTWARE. |
||||
*/ |
||||
// MIT Licence
|
||||
|
||||
#ifndef UTIL_STRCONV_H_3EQMSZZK |
||||
#define UTIL_STRCONV_H_3EQMSZZK |
||||
#define UTIL_STRCONV_H_VERSION "1.1.3" |
||||
|
||||
#ifdef __cplusplus |
||||
extern "C" { |
||||
#endif |
||||
|
||||
#include "util.h" |
||||
|
||||
s8 strtos8(const char *nptr, char **endptr, register int base); |
||||
s16 strtos16(const char *nptr, char **endptr, register int base); |
||||
s32 strtos32(const char *nptr, char **endptr, register int base); |
||||
s64 strtos64(const char *nptr, char **endptr, register int base); |
||||
extern s8 strtos8(const char *nptr, char **endptr, register int base); |
||||
extern s16 strtos16(const char *nptr, char **endptr, register int base); |
||||
extern s32 strtos32(const char *nptr, char **endptr, register int base); |
||||
extern s64 strtos64(const char *nptr, char **endptr, register int base); |
||||
|
||||
extern u8 strtou8(const char *nptr, char **endptr, register int base); |
||||
extern u16 strtou16(const char *nptr, char **endptr, register int base); |
||||
extern u32 strtou32(const char *nptr, char **endptr, register int base); |
||||
extern u64 strtou64(const char *nptr, char **endptr, register int base); |
||||
|
||||
u8 strtou8(const char *nptr, char **endptr, register int base); |
||||
u16 strtou16(const char *nptr, char **endptr, register int base); |
||||
u32 strtou32(const char *nptr, char **endptr, register int base); |
||||
u64 strtou64(const char *nptr, char **endptr, register int base); |
||||
#ifdef __cplusplus |
||||
} // extern "C"
|
||||
#endif |
||||
|
||||
#endif // UTIL_STRCONV_H_3EQMSZZK
|
||||
|
Loading…
Reference in new issue