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

File containing some utilities. More...

#include <string.h>
#include <ctype.h>
Include dependency graph for utils.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

void handle_quotes (char *token)
 Handle quotes in a string (remove them) More...
 
char * trim (char *str)
 Remove the spaces at the beginning and the end of a string. More...
 

Detailed Description

File containing some utilities.

Author
Julien & Franck
Date
30 Dec 2023

Function Documentation

◆ handle_quotes()

void handle_quotes ( char *  token)

Handle quotes in a string (remove them)

Parameters
tokenthe string to handle

◆ trim()

char* trim ( char *  str)

Remove the spaces at the beginning and the end of a string.

Parameters
strthe string to trim
Returns
the trimmed string