moreinttypes 1.9.0
Minimal library of enhanced integer types for C
Loading...
Searching...
No Matches
UInt16 Struct Reference

Encapsulates an unsigned 16-bit integer. More...

Data Fields

const uint16_t value
 The underlying value of this UInt16.
 
void(* add )(struct UInt16 *const restrict, uint16_t)
 Adds the given amount to the value of this UInt16.
 
void(* sub )(struct UInt16 *const restrict, uint16_t)
 Subtracts the given amount from the value of this UInt16.
 
void(* mul )(struct UInt16 *const restrict, uint16_t)
 Multiplies the value of this UInt16 by the given amount.
 
void(* div )(struct UInt16 *const restrict, uint16_t)
 Divides the value of this UInt16 by the given amount.
 
void(* parse )(struct UInt16 *const restrict, const char *, int)
 Attempts to set the value of this UInt16 by parsing a numeric string.
 
long double(* n_bang )(struct UInt16 *const restrict)
 Returns the factorial of this UInt16's value.
 
const char *(* to_bin )(struct UInt16 *const restrict)
 Returns the base-2 representation of this UInt16's value as a string.
 

Detailed Description

Encapsulates an unsigned 16-bit integer.