CARS

/home/nicola/Dropbox/Progetto SOL/CARS_terfram/src/match.h

00001 
00010 /*    Copyright (C) 2011  Nicola Corti
00011 
00012     This program is free software: you can redistribute it and/or modify
00013     it under the terms of the GNU General Public License as published by
00014     the Free Software Foundation, either version 3 of the License, or
00015     (at your option) any later version.
00016 
00017     This program is distributed in the hope that it will be useful,
00018     but WITHOUT ANY WARRANTY; without even the implied warranty of
00019     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00020     GNU General Public License for more details.
00021 
00022     You should have received a copy of the GNU General Public License
00023     along with this program.  If not, see <http://www.gnu.org/licenses/>.
00024 
00025                  For further information, Nicola Corti - <cortin [at] cli.di.unipi.it>
00026 */
00027 #include <stdlib.h>
00028 #include <stdio.h>
00029 #include <string.h>
00030 
00038 char * nextCity(char *path);
00039 
00047 int countCity(char *path);
00048 
00057 char * nextPath(char *path, int n);
00058 
00067 int isEqualCity(char *off, char *req);
00068 
00084 int cityMatch(char *req, char *off, int *begin);
00085 
00097 int pathLen(char *elem, int begin, int city_found);
00098 
00111 char *cityString(char *path, int begin, int city_found, int size);
00112 
00123 char *cutPath(char *path, int steps);