Corewar documentation 1.0.0
Loading...
Searching...
No Matches
my_find_nbr.c File Reference

The file containing the my_find_nbr function. More...

#include "my.h"

Functions

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

Detailed Description

The file containing the my_find_nbr function.

Author
Nicolas TORO

Function Documentation

◆ my_find_nbr()

int my_find_nbr ( char const * str)

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

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