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

The file containing the my_strict_getnbr_float function. More...

#include "my.h"

Functions

float my_strict_getnbr_float (char const *str)
 Returns a float number starting from a string number (str)
 

Detailed Description

The file containing the my_strict_getnbr_float function.

Author
Nicolas TORO

Function Documentation

◆ my_strict_getnbr_float()

float my_strict_getnbr_float ( char const * str)

Returns a float 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
float The number found in the string
Author
Nicolas TORO