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

The file containing the my_strict_find_nbr function. More...

#include "my.h"

Functions

int my_strict_find_nbr (char const *str)
 Find the first number (number) found in a string.
 

Detailed Description

The file containing the my_strict_find_nbr function.

Author
Nicolas TORO

Function Documentation

◆ my_strict_find_nbr()

int my_strict_find_nbr ( char const * str)

Find the first number (number) found in a string.

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