HeMPS
8.0
|
This module defines utils functions. More...
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 *) |
This module defines utils functions.
HEMPS VERSION - 8.0 - support for RT applications
Distribution: June 2016
Edited by: Marcelo Ruaro - contact: marce lo.r uaro@ acad .pucr s.br
Research group: GAPH-PUCRS - contact: ferna ndo. morae s@pu crs.b r
int abs | ( | int | num | ) |
Module
num | Input number |
char* itoa | ( | unsigned int | num | ) |
Converts a integer number to its decimal representation in a array of char
num | Integer number to be converted |
char* itoh | ( | unsigned int | num | ) |
Converts a integer number to its hexadecimal representation in a array of char
num | Integer number to be converted |
int puts | ( | char * | string | ) |
Print the string in the text file log
string | array of chars |
int rand | ( | int | seed, |
int | min, | ||
int | max | ||
) |