source: PSPA/parmelaPSPA/trunk/main.c @ 315

Last change on this file since 315 was 80, checked in by lemeur, 12 years ago

prise en compte d'un path pour les fichiers

File size: 594 bytes
Line 
1#include <string.h>
2#include <stdio.h>
3#include <stdlib.h>
4
5static int maxLongPath=132;
6
7void parmela_(char*, int*);
8
9int main(int argc,char* argv[]) 
10{
11
12  if ( argc != 2 ) 
13    {
14    printf(" usage : parmela complete_path_of_files  \n");
15    return 0;
16    }
17 
18  char workingPath[maxLongPath];
19
20
21  int taille = strlen(argv[1]);
22  if ( taille < maxLongPath - 1)
23    {
24      strcpy(workingPath, argv[1]);
25    }
26  else
27    {
28      printf(" parmela ERROR : path name of working area too long (should be < %d \n",maxLongPath);
29      return 0;
30    }
31
32  parmela_(workingPath, &taille);
33  return 0;
34}
Note: See TracBrowser for help on using the repository browser.