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

The file containing the my_super_number function. More...

#include "my.h"

Functions

int my_super_number (char *number, number_settings_t settings)
 Returns an int number starting from a string number (number) and change my_errno if an error occurs depending on the settings (settings)
 

Variables

int my_errno
 

Detailed Description

The file containing the my_super_number function.

Author
Nicolas TORO

Function Documentation

◆ my_super_number()

int my_super_number ( char * number,
number_settings_t settings )

Returns an int number starting from a string number (number) and change my_errno if an error occurs depending on the settings (settings)

Note
The function will change my_errno by 1 if an error occurs depending on the settings you choose with the settings parameter
Parameters
numberThe string to convert
settingsThe settings of the function
Returns
int The number found in the string
Author
Nicolas TORO