tgrekov-philosophers
HIVE philosophers July 2024
Loading...
Searching...
No Matches
atoi_errable.c File Reference

/* ************************************************************************** */
/* */
/* ::: :::::::: */
/* atoi_errable.c :+: :+: :+: */
/* +:+ +:+ +:+ */
/* By: tgrekov <tgrekov@student.hive.fi> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2024/07/22 04:30:45 by tgrekov #+# #+# */
/* Updated: 2024/08/25 12:37:38 by tgrekov ### ########.fr */
/* */
/* ************************************************************************** */

Definition in file atoi_errable.c.

Go to the source code of this file.

Functions

int atoi_errable (const char *str, int *n)
 Converts ascii digits from str to a signed integer, output into n . Returns 0 on success, 1 on overflow.
 

Function Documentation

◆ atoi_errable()

int atoi_errable ( const char *  str,
int *  n 
)

Converts ascii digits from str to a signed integer, output into n . Returns 0 on success, 1 on overflow.

Parameters
[in]str
[out]n
Return values
int

Definition at line 28 of file atoi_errable.c.