LibRCG  3.1.1
util.h
Go to the documentation of this file.
1 
12 #ifndef _UTIL_H_
13 #define _UTIL_H_
14 
31 int rgets(char** str);
32 
49 int rgetsEOF(char** str);
50 
70 int rngets(char* str,int dim);
71 
86 int getRandom(int min,int max);
87 
101 int mergeSort(void* vals[],int begin,int end,int(*comp)(void*,void*));
102 
103 #endif
int rgets(char **str)
Reads a line from the stdin.
Definition: util.c:21
int mergeSort(void *vals[], int begin, int end, int(*comp)(void *, void *))
Orders an array into ascending order, based on a given comparison function.
Definition: util.c:188
int getRandom(int min, int max)
Generates a random number in a given interval.
Definition: util.c:122
int rgetsEOF(char **str)
Reads a text from the stdin.
Definition: util.c:61
int rngets(char *str, int dim)
Reads a line from the stdin.
Definition: util.c:101

LibRCG © 2004-2015   Rui Carlos Gonçalves