Menu

countprefixdigits

Mark Hobley

Function: countprefixdigits
Library: stringlib
Prototype: int countprefixdigits(char *strarg)

Parameters

Parameter Type Description
strarg char * Pointer to string

Return values

Value Meaning
ZERO String is empty, not assigned, or contains no numerical characters at the beginning
POSITIVE Number of numerical digits at the start of the string

Description

The countprefixdigits function returns the number of numerical digits at start of the given string.

Filenames: numprectr.c
Include files: ctypes, ascnames.h, logicals.h, stringlib.h
Dependencies: ansilib, mheaders

Developer Information

Proposer: Mark Hobley
Lead programmer: Mark Hobley
Documentation by:

Manual page by:

Test Status

Lead test planner:
Lead test developer:
Test sign off:

Test plan: PENDING
Test programs:


Related

Wiki: Home

Want the latest updates on software, tech news, and AI?
Get latest updates about software, tech news, and AI from SourceForge directly in your inbox once a month.