Implementation status: partially implemented

Synopsis

#include <stdlib.h>

long atol(const char *str);
long long atoll(const char *str);

Description

The function converts the string pointed to by the argument str to a long integer (type long int) for atol or type long long int for atoll.

Arguments:
str - the string to be converted.

Return value

The converted value if the value can be represented.

Errors

No errors are defined.

Implementation tasks

  • Implement atoll() function.

Tests

======

EXAMPLES

None.