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

The file containing the my_strict_getnbr function. More...

#include "my.h"

Functions

int my_strict_getnbr (char const *str)
 Returns an int number starting from a string number (str)
 

Detailed Description

The file containing the my_strict_getnbr function.

Author
Nicolas TORO

Function Documentation

◆ my_strict_getnbr()

int my_strict_getnbr ( char const * str)

Returns an int number starting from a string number (str)

Note
The function does not accept signes in the string and overflow
Returns -1 if the string is invalid
Parameters
strThe string to convert
Returns
int The number found in the string
Author
Nicolas TORO