diff options
| author | lukem <lukem@NetBSD.org> | 2002-11-29 12:58:14 +0000 |
|---|---|---|
| committer | lukem <lukem@NetBSD.org> | 2002-11-29 12:58:14 +0000 |
| commit | 6ca5b5bb6838e16b4429bd68d8f6ba83c76b6554 (patch) | |
| tree | 44c4601853009ad9862770d496ad6f5ac24cebab /include/stdlib.h | |
| parent | a9a3da8aca7dcb03a9e8bc933e20df60d690b858 (diff) | |
add strsuftoll(3) and strsuftollx(3) - parse a string for a number
with an optional suffix, product (two numbers separated by `x'), and
provide range checking
Diffstat (limited to 'include/stdlib.h')
| -rw-r--r-- | include/stdlib.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/stdlib.h b/include/stdlib.h index 0a067b8e7f1..0f4f7430c70 100644 --- a/include/stdlib.h +++ b/include/stdlib.h @@ -1,4 +1,4 @@ -/* $NetBSD: stdlib.h,v 1.56 2002/05/24 04:01:43 itojun Exp $ */ +/* $NetBSD: stdlib.h,v 1.57 2002/11/29 12:58:14 lukem Exp $ */ /*- * Copyright (c) 1990, 1993 @@ -270,6 +270,12 @@ quad_t qabs __P((quad_t)); quad_t strtoq __P((const char * __restrict, char ** __restrict, int)); u_quad_t strtouq __P((const char * __restrict, char ** __restrict, int)); + /* LONGLONG */ +long long strsuftoll(const char *, const char *, long long, long long); + /* LONGLONG */ +long long strsuftollx(const char *, const char *, long long, long long, + char *, size_t); + int l64a_r __P((long, char *, int)); size_t shquote __P((const char *arg, char *buf, size_t bufsize)); |
