Iros
 
Loading...
Searching...
No Matches
ccpp Namespace Reference

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>
atoi (char const *string)
 
di::Expected< int, di::GenericCodeprintf_implementation (di::FunctionRef< di::Expected< void, di::GenericCode >(di::TransparentStringView)> write_exactly, char const *format, va_list args)
 
di::Expected< int, di::GenericCodescanf_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>
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 FILEstderr = &stderr_storage
 
FILEstdin = &stdin_storage
 
FILEstdout = &stdout_storage
 

Typedef Documentation

◆ FileHandle

Enumeration Type Documentation

◆ BufferMode

enum class ccpp::BufferMode
strong
Enumerator
NotBuffered 
LineBuffered 
FullBuffered 

◆ BufferOwnership

enum class ccpp::BufferOwnership
strong
Enumerator
Owned 
UserProvided 

◆ Permissions

enum class ccpp::Permissions
strong
Enumerator
None 
Readable 
Writable 

◆ ReadWriteMode

enum class ccpp::ReadWriteMode
strong
Enumerator
None 
Read 
Write 

◆ Status

enum class ccpp::Status
strong
Enumerator
None 
Eof 
Error 

Function Documentation

◆ atoi()

template<di::concepts::OneOf< int, long, long long > T>
T ccpp::atoi ( char const * string)

◆ fdopen()

auto ccpp::fdopen ( int fd,
char const * mode ) -> FILE*

◆ fgetc_unlocked()

auto ccpp::fgetc_unlocked ( FILE * file) -> int

◆ fopen()

auto ccpp::fopen ( char const *__restrict path,
char const *__restrict mode ) -> FILE*

◆ fputc_unlocked()

auto ccpp::fputc_unlocked ( int ch,
FILE * file ) -> int

◆ fseek()

auto ccpp::fseek ( FILE * file,
long offset,
int origin ) -> int

◆ ftell()

auto ccpp::ftell ( FILE * file) -> long

◆ getopt()

auto ccpp::getopt ( int argc,
char *const argv[],
char const * optstring ) -> int

◆ getopt_implementation()

int ccpp::getopt_implementation ( int argc,
char *const argv_in[],
char const * optstring,
const struct option * longopts_in,
int * longindex,
bool long_only ) -> int

◆ getopt_long()

auto ccpp::getopt_long ( int argc,
char *const * argv,
char const * optstring,
const struct option * longopts,
int * longindex ) -> int

◆ getopt_long_only()

auto ccpp::getopt_long_only ( int argc,
char *const * argv,
char const * optstring,
const struct option * longopts,
int * longindex ) -> int

◆ printf_implementation()

auto ccpp::printf_implementation ( di::FunctionRef< di::Expected< void, di::GenericCode >(di::TransparentStringView)> write_exactly,
char const * format,
va_list args )

◆ scanf_implementation()

auto ccpp::scanf_implementation ( di::FunctionRef< di::Expected< di::Optional< char >, di::GenericCode >()> read_next,
char const * format,
va_list args )

◆ setvbuf()

auto ccpp::setvbuf ( FILE *__restrict file,
char *__restrict buffer,
int mode,
size_t size ) -> int

◆ strtol()

template<di::concepts::OneOf< long, long long, unsigned long, unsigned long long > T>
T ccpp::strtol ( char const *__restrict string,
char **__restrict end,
int radix )

◆ tmpfile()

auto ccpp::tmpfile ( void ) -> FILE*

◆ vfprintf()

auto ccpp::vfprintf ( FILE *__restrict file,
char const *__restrict format,
va_list args ) -> int

◆ vfscanf()

auto ccpp::vfscanf ( FILE *__restrict file,
char const *__restrict format,
va_list args ) -> int

◆ vsnprintf()

auto ccpp::vsnprintf ( char *__restrict buffer,
size_t size,
char const *__restrict format,
va_list args ) -> int

◆ vsprintf()

auto ccpp::vsprintf ( char *__restrict buffer,
char const *__restrict format,
va_list args ) -> int

◆ vsscanf()

auto ccpp::vsscanf ( char const *__restrict buffer,
char const *__restrict format,
va_list args ) -> int

Variable Documentation

◆ stderr

FILE* ccpp::stderr = &stderr_storage
constinit

◆ stdin

FILE* ccpp::stdin = &stdin_storage

◆ stdout

FILE* ccpp::stdout = &stdout_storage