42sh 1.0.0
Create a shell in C
Loading...
Searching...
No Matches
condition.c File Reference

The file containing the condition functions. More...

Functions

int get_condition (char *str)
 Get the condition result from a string.
 

Detailed Description

The file containing the condition functions.

Function Documentation

◆ get_condition()

int get_condition ( char * str)

Get the condition result from a string.

Parameters
strThe string to calculate
Returns
int The result of the condition : 0 if false, 1 if true and -1 if an error occurred