File: ullhexu.c

package info (click to toggle)
bglibs 2.04%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: buster
  • size: 3,368 kB
  • sloc: ansic: 15,820; perl: 674; sh: 64; makefile: 26
file content (15 lines) | stat: -rw-r--r-- 472 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#include "fmt.h"

/** Format an unsigned long long integer as (upper-case) hexadecimal
    with padding. */
unsigned fmt_ullHexw(char* buffer, unsigned long long num,
		     unsigned width, char pad)
{
  return fmt_ullnumw(buffer, num, width, pad, 16, fmt_ucase_digits);
}

/** Format an unsigned long long integer as (upper-case) hexadecimal. */
unsigned fmt_ullHex(char* buffer, unsigned long long num)
{
  return fmt_ullnumw(buffer, num, 0, 0, 16, fmt_ucase_digits);
}