libcproject
C static library easier to use than libc (C standard library).
terminal.h File Reference
#include <errno.h>
#include <stdbool.h>
#include <stdint.h>
#include <stdio.h>
#include <stdlib.h>
#include "array_list.h"
#include "character.h"
#include "hash_map.h"
#include "linked_list.h"
#include "queue.h"
#include "stack.h"
#include "types.h"
Include dependency graph for terminal.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

string_t terminal_input ()
 Read a line from stdin. More...
 
void terminal_print_int (void *value)
 Print a int. More...
 
void terminal_print_bool (void *value)
 Print a boolean. More...
 
void terminal_print_long (void *value)
 Print a long. More...
 
void terminal_print_unsigned_long (void *value)
 Print a unsigned long. More...
 
void terminal_print_float (void *value)
 Print a float. More...
 
void terminal_print_double (void *value)
 Print a double. More...
 
void terminal_print_int8_t (void *value)
 Print a int8_t. More...
 
void terminal_print_int16_t (void *value)
 Print a int16_t. More...
 
void terminal_print_int32_t (void *value)
 Print a int32_t. More...
 
void terminal_print_int64_t (void *value)
 Print a int64_t. More...
 
void terminal_print_uint8_t (void *value)
 Print a uint8_t. More...
 
void terminal_print_uint16_t (void *value)
 Print a uint16_t. More...
 
void terminal_print_uint32_t (void *value)
 Print a uint32_t. More...
 
void terminal_print_uint64_t (void *value)
 Print a uint64_t. More...
 
void terminal_print_char (void *value)
 Print a char. More...
 
void terminal_print_array (void *array, size_t array_size, size_t element_size, void(*print_element)(void *))
 Print an array. More...
 
void terminal_print_string (void *value)
 Print a string. More...
 
void terminal_print_stack (struct stack *stack, void(*print_element)(void *))
 Print a stack. More...
 
void terminal_print_queue (struct queue *queue, void(*print_element)(void *))
 Print a queue. More...
 
void terminal_print_linked_list (struct linked_list *linked_list, void(*print_element)(void *))
 Print a linked list. More...
 
void terminal_print_hash_map (struct hash_map *hash_map, void(*print_element)(void *))
 Print a hash map. More...
 
void terminal_print_array_list (struct array_list *list, void(*print_element)(void *))
 Print an array list. More...
 

Function Documentation

◆ terminal_input()

string_t terminal_input ( )

Read a line from stdin.

Returns
string_t
Since
v1.0.0

◆ terminal_print_int()

void terminal_print_int ( void *  value)

Print a int.

Parameters
value
Since
v1.0.0

◆ terminal_print_bool()

void terminal_print_bool ( void *  value)

Print a boolean.

Parameters
value
Since
v5.0.0

◆ terminal_print_long()

void terminal_print_long ( void *  value)

Print a long.

Parameters
value
Since
v1.0.0

◆ terminal_print_unsigned_long()

void terminal_print_unsigned_long ( void *  value)

Print a unsigned long.

Parameters
value
Since
v1.0.0

◆ terminal_print_float()

void terminal_print_float ( void *  value)

Print a float.

Parameters
value
Since
v5.0.0

◆ terminal_print_double()

void terminal_print_double ( void *  value)

Print a double.

Parameters
value
Since
v5.0.0

◆ terminal_print_int8_t()

void terminal_print_int8_t ( void *  value)

Print a int8_t.

Parameters
value
Since
v5.0.0

◆ terminal_print_int16_t()

void terminal_print_int16_t ( void *  value)

Print a int16_t.

Parameters
value
Since
v5.0.0

◆ terminal_print_int32_t()

void terminal_print_int32_t ( void *  value)

Print a int32_t.

Parameters
value
Since
v5.0.0

◆ terminal_print_int64_t()

void terminal_print_int64_t ( void *  value)

Print a int64_t.

Parameters
value
Since
v5.0.0

◆ terminal_print_uint8_t()

void terminal_print_uint8_t ( void *  value)

Print a uint8_t.

Parameters
value
Since
v5.0.0

◆ terminal_print_uint16_t()

void terminal_print_uint16_t ( void *  value)

Print a uint16_t.

Parameters
value
Since
v5.0.0

◆ terminal_print_uint32_t()

void terminal_print_uint32_t ( void *  value)

Print a uint32_t.

Parameters
value
Since
v5.0.0

◆ terminal_print_uint64_t()

void terminal_print_uint64_t ( void *  value)

Print a uint64_t.

Parameters
value
Since
v5.0.0

◆ terminal_print_char()

void terminal_print_char ( void *  value)

Print a char.

Parameters
value
Since
v1.0.0

◆ terminal_print_array()

void terminal_print_array ( void *  array,
size_t  array_size,
size_t  element_size,
void(*)(void *)  print_element 
)

Print an array.

Parameters
array
array_size
element_size
print_element
Since
v1.0.0

◆ terminal_print_string()

void terminal_print_string ( void *  value)

Print a string.

Parameters
value
Since
v1.0.0

◆ terminal_print_stack()

void terminal_print_stack ( struct stack stack,
void(*)(void *)  print_element 
)

Print a stack.

Parameters
stack
print_element
Since
v1.0.0

◆ terminal_print_queue()

void terminal_print_queue ( struct queue queue,
void(*)(void *)  print_element 
)

Print a queue.

Parameters
queue
print_element
Since
v1.0.0

◆ terminal_print_linked_list()

void terminal_print_linked_list ( struct linked_list linked_list,
void(*)(void *)  print_element 
)

Print a linked list.

Parameters
linked_list
print_element
Since
v1.0.0

◆ terminal_print_hash_map()

void terminal_print_hash_map ( struct hash_map hash_map,
void(*)(void *)  print_element 
)

Print a hash map.

Parameters
hash_map
print_element
Since
v2.0.0

◆ terminal_print_array_list()

void terminal_print_array_list ( struct array_list list,
void(*)(void *)  print_element 
)

Print an array list.

Parameters
list
print_element
Since
v3.0.0