all_numbers()

all_numbers()#

all_numbers() checks if a given string consists entirely of numeric characters.

Prototype

BOOL all_numbers(const char *s);

Parameters

Key

Type

Description

s

const char *

The input string to be checked.


Return Value

Returns TRUE if the string contains only numeric characters and is not empty; otherwise, returns FALSE.

Notes

An empty string is considered non-numeric and will return FALSE.

Prototype

// Not applicable in JS

Prototype

# Not applicable in Python
Examples
// TODO C examples
// TODO JS examples
# TODO Python examples