Browse Source

Put limits.h in front of stdlib.h as style(9) recommends.

OK millert@
OPENBSD_4_3
tobias 17 years ago
parent
commit
a1236056e5
2 changed files with 8 additions and 8 deletions
  1. +4
    -4
      src/lib/libc/stdlib/strtol.3
  2. +4
    -4
      src/lib/libc/stdlib/strtoul.3

+ 4
- 4
src/lib/libc/stdlib/strtol.3 View File

@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: strtol.3,v 1.18 2007/06/29 18:54:37 millert Exp $
.\" $OpenBSD: strtol.3,v 1.19 2007/11/13 18:30:04 tobias Exp $
.\" .\"
.Dd $Mdocdate: June 29 2007 $
.Dd $Mdocdate: November 13 2007 $
.Dt STRTOL 3 .Dt STRTOL 3
.Os .Os
.Sh NAME .Sh NAME
@ -41,8 +41,8 @@
.Nm strtoq , .Nm strtoq ,
.Nd "convert string value to a long, long long or intmax_t integer" .Nd "convert string value to a long, long long or intmax_t integer"
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <stdlib.h>
.Fd #include <limits.h> .Fd #include <limits.h>
.Fd #include <stdlib.h>
.Ft long .Ft long
.Fn strtol "const char *nptr" "char **endptr" "int base" .Fn strtol "const char *nptr" "char **endptr" "int base"
.Pp .Pp
@ -54,8 +54,8 @@
.Fn strtoimax "const char *nptr" "char **endptr" "int base" .Fn strtoimax "const char *nptr" "char **endptr" "int base"
.Pp .Pp
.Fd #include <sys/types.h> .Fd #include <sys/types.h>
.Fd #include <stdlib.h>
.Fd #include <limits.h> .Fd #include <limits.h>
.Fd #include <stdlib.h>
.Ft quad_t .Ft quad_t
.Fn strtoq "const char *nptr" "char **endptr" "int base" .Fn strtoq "const char *nptr" "char **endptr" "int base"
.Sh DESCRIPTION .Sh DESCRIPTION


+ 4
- 4
src/lib/libc/stdlib/strtoul.3 View File

@ -29,9 +29,9 @@
.\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF .\" OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
.\" SUCH DAMAGE. .\" SUCH DAMAGE.
.\" .\"
.\" $OpenBSD: strtoul.3,v 1.18 2007/06/29 18:54:37 millert Exp $
.\" $OpenBSD: strtoul.3,v 1.19 2007/11/13 18:30:04 tobias Exp $
.\" .\"
.Dd $Mdocdate: June 29 2007 $
.Dd $Mdocdate: November 13 2007 $
.Dt STRTOUL 3 .Dt STRTOUL 3
.Os .Os
.Sh NAME .Sh NAME
@ -41,8 +41,8 @@
.Nm strtouq .Nm strtouq
.Nd "convert a string to an unsigned long, unsigned long long or uintmax_t integer" .Nd "convert a string to an unsigned long, unsigned long long or uintmax_t integer"
.Sh SYNOPSIS .Sh SYNOPSIS
.Fd #include <stdlib.h>
.Fd #include <limits.h> .Fd #include <limits.h>
.Fd #include <stdlib.h>
.Ft unsigned long .Ft unsigned long
.Fn strtoul "const char *nptr" "char **endptr" "int base" .Fn strtoul "const char *nptr" "char **endptr" "int base"
.Pp .Pp
@ -54,8 +54,8 @@
.Fn strtoumax "const char *nptr" "char **endptr" "int base" .Fn strtoumax "const char *nptr" "char **endptr" "int base"
.Pp .Pp
.Fd #include <sys/types.h> .Fd #include <sys/types.h>
.Fd #include <stdlib.h>
.Fd #include <limits.h> .Fd #include <limits.h>
.Fd #include <stdlib.h>
.Ft u_quad_t .Ft u_quad_t
.Fn strtouq "const char *nptr" "char **endptr" "int base" .Fn strtouq "const char *nptr" "char **endptr" "int base"
.Sh DESCRIPTION .Sh DESCRIPTION


Loading…
Cancel
Save