/* lab8f06.h */

#ifndef _LAB9F06_H
#define _LAB9F06_H

/* Given a string s, it replaces all its uppercase letters by the 
   corresponding lowercase.
 */
void toLower(char * s);

/* Given an mxn character array a where p rows are filled (p<m), if
   s is not already in a, it is added to a. The new number of filled
   positions in a is returned.
 */
int insert(int m, int n, char a[m][n], int p, char *s);

/* Given an mxn character array a where *p rows are filled (p<=m), and a 
   string s, it inserts in a, without duplication, all the tokens
   found in s (a token is a maximal sequence of not blank characters).
   It returns the number of tokens inserted in a. *p is set to the
   new content level in the table
 */
int tokenize(int m, int n, char a[m][n], int *p, char *s);

/* Given an mxn character array a where p rows are filled (p<=m),
   It sorts these rows in increasing order.
 */
void sort(int m, int n, char a[m][n], int p);

#endif

