Blame lib/inttostr.h

Packit 33f14e
/* inttostr.h -- convert integers to printable strings
Packit 33f14e
Packit 33f14e
   Copyright (C) 2001-2006, 2009-2017 Free Software Foundation, Inc.
Packit 33f14e
Packit 33f14e
   This program is free software: you can redistribute it and/or modify
Packit 33f14e
   it under the terms of the GNU General Public License as published by
Packit 33f14e
   the Free Software Foundation; either version 3 of the License, or
Packit 33f14e
   (at your option) any later version.
Packit 33f14e
Packit 33f14e
   This program is distributed in the hope that it will be useful,
Packit 33f14e
   but WITHOUT ANY WARRANTY; without even the implied warranty of
Packit 33f14e
   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
Packit 33f14e
   GNU General Public License for more details.
Packit 33f14e
Packit 33f14e
   You should have received a copy of the GNU General Public License
Packit 33f14e
   along with this program.  If not, see <http://www.gnu.org/licenses/>.  */
Packit 33f14e
Packit 33f14e
/* Written by Paul Eggert */
Packit 33f14e
Packit 33f14e
#include <stdint.h>
Packit 33f14e
#include <sys/types.h>
Packit 33f14e
Packit 33f14e
#include "intprops.h"
Packit 33f14e
Packit 33f14e
#ifndef __GNUC_PREREQ
Packit 33f14e
# if defined __GNUC__ && defined __GNUC_MINOR__
Packit 33f14e
#  define __GNUC_PREREQ(maj, min) \
Packit 33f14e
         ((__GNUC__ << 16) + __GNUC_MINOR__ >= ((maj) << 16) + (min))
Packit 33f14e
# else
Packit 33f14e
#  define __GNUC_PREREQ(maj, min) 0
Packit 33f14e
# endif
Packit 33f14e
#endif
Packit 33f14e
Packit 33f14e
#if __GNUC_PREREQ (3,4)
Packit 33f14e
# undef __attribute_warn_unused_result__
Packit 33f14e
# define __attribute_warn_unused_result__ \
Packit 33f14e
   __attribute__ ((__warn_unused_result__))
Packit 33f14e
#else
Packit 33f14e
# define __attribute_warn_unused_result__ /* empty */
Packit 33f14e
#endif
Packit 33f14e
Packit 33f14e
char *imaxtostr (intmax_t, char *) __attribute_warn_unused_result__;
Packit 33f14e
char *inttostr (int, char *) __attribute_warn_unused_result__;
Packit 33f14e
char *offtostr (off_t, char *) __attribute_warn_unused_result__;
Packit 33f14e
char *uinttostr (unsigned int, char *) __attribute_warn_unused_result__;
Packit 33f14e
char *umaxtostr (uintmax_t, char *) __attribute_warn_unused_result__;