Livl Shell  0.1
Livl Shell is an intermediate reimplementation of the bash shell in C language.
Functions
console.h File Reference

File containing the console functions to manage the console (print information, etc.) to avoid code duplication. More...

#include <stdio.h>
#include <stdarg.h>
#include <unistd.h>
#include <stdlib.h>
#include "constants.h"
Include dependency graph for console.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void print_info (const char *text,...)
 Generic print information to the console. More...
 
void print_prompt ()
 Print the prompt to the console (username @ hostname:$)
 
void print_perror (const char *format,...)
 Print the error to the console. More...
 

Detailed Description

File containing the console functions to manage the console (print information, etc.) to avoid code duplication.

Author
Julien & Franck
Date
24 Dec 2023

Function Documentation

◆ print_info()

void print_info ( const char *  text,
  ... 
)

Generic print information to the console.

Parameters
textThe text to be printed
...optional arguments like s, d, etc.

◆ print_perror()

void print_perror ( const char *  format,
  ... 
)

Print the error to the console.

Parameters
formatThe format of the error
...optional arguments like s, d, etc.