"Fossies" - the Fresh Open Source Software Archive

Member "xombrero-1.6.4/freebsd/util.h" (17 Feb 2015, 1096 Bytes) of package /linux/www/old/xombrero-1.6.4.tgz:


As a special service "Fossies" has tried to format the requested source page into HTML format using (guessed) C and C++ source code syntax highlighting (style: standard) with prefixed line numbers and code folding option. Alternatively you can here view or download the uninterpreted source code file. For more information about "util.h" see the Fossies "Dox" file reference documentation.

    1 /*
    2  * Copyright (c) 2010 Marco Peereboom <marco@peereboom.us>
    3  *
    4  * Permission to use, copy, modify, and distribute this software for any
    5  * purpose with or without fee is hereby granted, provided that the above
    6  * copyright notice and this permission notice appear in all copies.
    7  *
    8  * THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES
    9  * WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF
   10  * MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR
   11  * ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
   12  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN
   13  * ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF
   14  * OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
   15  */
   16 /*
   17  * This file tries to make up for the difference between OpenBSD's
   18  * <util.h> and FreeBSD's <libutil.h>.
   19  */
   20 
   21 /*
   22  * fmt_scaled(3) specific flags. (from OpenBSD util.h)
   23  */
   24 
   25 #define FMT_SCALED_STRSIZE  7   /* minus sign, 4 digits, suffix, null byte */
   26 
   27 int fmt_scaled(long long number, char *result);