WKern
Loading...
Searching...
No Matches
numtools.c File Reference
#include <utils/util.h>

Go to the source code of this file.

Functions

int Katoi (const char *str)
 Converts ASCII - Integer.
int Katoi_auto (const char *str)
 Safely convert ASCII To Integer.
void Kitoa (unsigned int num, char *buf)
 Convert Integer to ASCII Text.

Function Documentation

◆ Katoi()

int Katoi ( const char * str)

Converts ASCII - Integer.

Parameters
str- ASCII Text
Returns
Integer from ASCII Input

Definition at line 23 of file numtools.c.

◆ Katoi_auto()

int Katoi_auto ( const char * str)

Safely convert ASCII To Integer.

Parameters
str- ASCII Text
Returns
Integer from ASCII Input

Definition at line 47 of file numtools.c.

◆ Kitoa()

void Kitoa ( unsigned int num,
char * buf )

Convert Integer to ASCII Text.

Parameters
num- Number to convert to ASCII Text
buf- Buffer which ASCII Text will be stored at

Definition at line 73 of file numtools.c.