HeMPS  8.0
Macros | Functions
utils.h File Reference

This module defines utils functions. More...

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define FALSE   0
 
#define TRUE   1
 
#define putsv(string, value)   puts(string); puts(itoa(value)); puts("\n");
 
#define putsvsv(str1, v1, str2, v2)   puts(str1); puts(itoa(v1)); puts(str2); puts(itoa(v2)); puts("\n");
 

Functions

char * itoa (unsigned int)
 
char * itoh (unsigned int)
 
int abs (int)
 
int rand (int, int, int)
 
int add (int, int)
 
int sub (int, int)
 
void * memset (void *, int, unsigned long)
 
char * fixetoa (int)
 
char * strcpy (char *, const char *)
 
int strlen (const char *)
 
int puts (char *)
 

Detailed Description

This module defines utils functions.

HEMPS VERSION - 8.0 - support for RT applications

Distribution: June 2016

Edited by: Marcelo Ruaro - contact: marce.nosp@m.lo.r.nosp@m.uaro@.nosp@m.acad.nosp@m..pucr.nosp@m.s.br

Research group: GAPH-PUCRS - contact: ferna.nosp@m.ndo..nosp@m.morae.nosp@m.s@pu.nosp@m.crs.b.nosp@m.r

Function Documentation

int abs ( int  num)

Module

Parameters
numInput number
Returns
Module result
char* itoa ( unsigned int  num)

Converts a integer number to its decimal representation in a array of char

Parameters
numInteger number to be converted
Returns
Array of chars
char* itoh ( unsigned int  num)

Converts a integer number to its hexadecimal representation in a array of char

Parameters
numInteger number to be converted
Returns
Array of chars
int puts ( char *  string)

Print the string in the text file log

Parameters
stringarray of chars
Returns
The int return is only to avoid a build-in warning
int rand ( int  seed,
int  min,
int  max 
)
Parameters