Classes | |
struct | File |
struct | FileDeleter |
struct | MallocAllocator |
struct | MallocBlock |
struct | scanf_specifier_state |
Typedefs | |
using | FileHandle = di::Box<FILE, FileDeleter> |
Enumerations | |
enum class | BufferMode { NotBuffered = _IONBF , LineBuffered = _IOLBF , FullBuffered = _IOFBF } |
enum class | Permissions { None = 0 , Readable = 1 , Writable = 2 } |
enum class | BufferOwnership { Owned , UserProvided } |
enum class | ReadWriteMode { None = 0 , Read = 1 , Write = 2 } |
enum class | Status { None = 0 , Eof = 1 , Error = 2 } |
Functions | |
auto | getopt (int argc, char *const argv[], char const *optstring) -> int |
auto | getopt_implementation (int argc, char *const argv_in[], char const *optstring, const struct option *longopts_in, int *longindex, bool long_only) -> int |
auto | getopt_long (int argc, char *const *argv, char const *optstring, const struct option *longopts, int *longindex) -> int |
auto | getopt_long_only (int argc, char *const *argv, char const *optstring, const struct option *longopts, int *longindex) -> int |
template<di::concepts::OneOf< int, long, long long > T> | |
T | atoi (char const *string) |
di::Expected< int, di::GenericCode > | printf_implementation (di::FunctionRef< di::Expected< void, di::GenericCode >(di::TransparentStringView)> write_exactly, char const *format, va_list args) |
di::Expected< int, di::GenericCode > | scanf_implementation (di::FunctionRef< di::Expected< di::Optional< char >, di::GenericCode >()> read_next, char const *format, va_list args) |
template<di::concepts::OneOf< long, long long, unsigned long, unsigned long long > T> | |
T | strtol (char const *__restrict string, char **__restrict end, int radix) |
auto | fdopen (int fd, char const *mode) -> FILE * |
auto | fgetc_unlocked (FILE *file) -> int |
auto | fopen (char const *__restrict path, char const *__restrict mode) -> FILE * |
auto | fputc_unlocked (int ch, FILE *file) -> int |
auto | fseek (FILE *file, long offset, int origin) -> int |
auto | ftell (FILE *file) -> long |
auto | setvbuf (FILE *__restrict file, char *__restrict buffer, int mode, size_t size) -> int |
auto | tmpfile (void) -> FILE * |
auto | vfprintf (FILE *__restrict file, char const *__restrict format, va_list args) -> int |
auto | vfscanf (FILE *__restrict file, char const *__restrict format, va_list args) -> int |
auto | vsnprintf (char *__restrict buffer, size_t size, char const *__restrict format, va_list args) -> int |
auto | vsprintf (char *__restrict buffer, char const *__restrict format, va_list args) -> int |
auto | vsscanf (char const *__restrict buffer, char const *__restrict format, va_list args) -> int |
Variables | |
constinit FILE * | stderr = &stderr_storage |
FILE * | stdin = &stdin_storage |
FILE * | stdout = &stdout_storage |
using ccpp::FileHandle = di::Box<FILE, FileDeleter> |
|
strong |
|
strong |
|
strong |
|
strong |
|
strong |
T ccpp::atoi | ( | char const * | string | ) |
auto ccpp::fdopen | ( | int | fd, |
char const * | mode ) -> FILE* |
auto ccpp::fgetc_unlocked | ( | FILE * | file | ) | -> int |
auto ccpp::fopen | ( | char const *__restrict | path, |
char const *__restrict | mode ) -> FILE* |
auto ccpp::fputc_unlocked | ( | int | ch, |
FILE * | file ) -> int |
auto ccpp::fseek | ( | FILE * | file, |
long | offset, | ||
int | origin ) -> int |
auto ccpp::ftell | ( | FILE * | file | ) | -> long |
auto ccpp::getopt | ( | int | argc, |
char *const | argv[], | ||
char const * | optstring ) -> int |
int ccpp::getopt_implementation | ( | int | argc, |
char *const | argv_in[], | ||
char const * | optstring, | ||
const struct option * | longopts_in, | ||
int * | longindex, | ||
bool | long_only ) -> int |
auto ccpp::getopt_long | ( | int | argc, |
char *const * | argv, | ||
char const * | optstring, | ||
const struct option * | longopts, | ||
int * | longindex ) -> int |
auto ccpp::getopt_long_only | ( | int | argc, |
char *const * | argv, | ||
char const * | optstring, | ||
const struct option * | longopts, | ||
int * | longindex ) -> int |
auto ccpp::printf_implementation | ( | di::FunctionRef< di::Expected< void, di::GenericCode >(di::TransparentStringView)> | write_exactly, |
char const * | format, | ||
va_list | args ) |
auto ccpp::scanf_implementation | ( | di::FunctionRef< di::Expected< di::Optional< char >, di::GenericCode >()> | read_next, |
char const * | format, | ||
va_list | args ) |
T ccpp::strtol | ( | char const *__restrict | string, |
char **__restrict | end, | ||
int | radix ) |
auto ccpp::tmpfile | ( | void | ) | -> FILE* |
auto ccpp::vsnprintf | ( | char *__restrict | buffer, |
size_t | size, | ||
char const *__restrict | format, | ||
va_list | args ) -> int |
auto ccpp::vsprintf | ( | char *__restrict | buffer, |
char const *__restrict | format, | ||
va_list | args ) -> int |
auto ccpp::vsscanf | ( | char const *__restrict | buffer, |
char const *__restrict | format, | ||
va_list | args ) -> int |
|
constinit |
FILE* ccpp::stdin = &stdin_storage |
FILE* ccpp::stdout = &stdout_storage |