Deleted Added
full compact
strtoq.c (73155) strtoq.c (82975)
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 23 unchanged lines hidden (view full) ---

32 */
33
34#if defined(LIBC_SCCS) && !defined(lint)
35static char sccsid[] = "@(#)strtoq.c 8.1 (Berkeley) 6/4/93";
36#endif /* LIBC_SCCS and not lint */
37
38#ifndef lint
39static const char rcsid[] =
1/*-
2 * Copyright (c) 1992, 1993
3 * The Regents of the University of California. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 23 unchanged lines hidden (view full) ---

32 */
33
34#if defined(LIBC_SCCS) && !defined(lint)
35static char sccsid[] = "@(#)strtoq.c 8.1 (Berkeley) 6/4/93";
36#endif /* LIBC_SCCS and not lint */
37
38#ifndef lint
39static const char rcsid[] =
40 "$FreeBSD: head/lib/libc/stdlib/strtoq.c 73155 2001-02-27 14:30:42Z obrien $";
40 "$FreeBSD: head/lib/libc/stdlib/strtoq.c 82975 2001-09-04 16:39:11Z ache $";
41#endif
42
43#include <sys/types.h>
44
45#include <stdlib.h>
46
47/*
48 * Convert a string to a quad integer.
49 *
41#endif
42
43#include <sys/types.h>
44
45#include <stdlib.h>
46
47/*
48 * Convert a string to a quad integer.
49 *
50 * Ignores `locale' stuff. Assumes that the upper and lower case
50 * Assumes that the upper and lower case
51 * alphabets and digits are each contiguous.
52 */
53quad_t
54strtoq(nptr, endptr, base)
55 const char *nptr;
56 char **endptr;
57 int base;
58{
59
60 return strtoll(nptr, endptr, base);
61}
51 * alphabets and digits are each contiguous.
52 */
53quad_t
54strtoq(nptr, endptr, base)
55 const char *nptr;
56 char **endptr;
57 int base;
58{
59
60 return strtoll(nptr, endptr, base);
61}