StringUtils

Author:
Armin Trattnig
Version:
1.0
Includes:
<stdlib.h>
<stdio.h>
<string.h>
<stdbool.h>
<ctype.h>
"Logger.h"

Introduction

StringUtils provides functions, which involve strings and are commonly used by the software

Updated:
Thursday, September 18, 2014


Functions

isNumeric
stringAppend

isNumeric


static inline bool isNumeric (
    const char *s) 
Parameters
s

String, which will be checked

Return Value

Pointer to the a new string

Discussion

Checks if a string represents a series of digits or not


stringAppend


static inline char* stringAppend (
    char *base,
    const char *extention) 
Parameters
base

The base string, to which the extention string will be appended

extention

The extention string, which will be attached to the base strings

Return Value

Pointer to the base string

Discussion

Appends the extention string to the base string

WARNING:

Additional memory will be allocated