safec  3.0
Safe C Library - ISO TR24731 Bounds Checking Interface
strisalphanumeric_s.c File Reference
#include "safe_str_lib.h"
+ Include dependency graph for strisalphanumeric_s.c:

Functions

bool strisalphanumeric_s (const char *dest, rsize_t dmax)
 This function checks if the entire string contains alphanumerics. More...
 

Function Documentation

◆ strisalphanumeric_s()

bool strisalphanumeric_s ( const char *  dest,
rsize_t  dmax 
)

This function checks if the entire string contains alphanumerics.

The scanning stops at the first null or after dmax characters.

Remarks
EXTENSION TO ISO/IEC TR 24731, Programming languages, environments and system software interfaces, Extensions to the C Library, Part I: Bounds-checking interfaces
Parameters
destpointer to string
dmaxmaximum length of string
Precondition
dest shall not be a null pointer.
dmax shall not equal zero.
dmax shall not be greater than RSIZE_MAX_STR.
Returns
true when dest is alphanumeric
false when dest is not alphanumeric or an error occurred
See also
strisascii_s(), strisdigit_s(), strishex_s(), strislowercase_s(), strismixedcase_s(), strisuppercase_s()