forked from CesarAng28/DataShell
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathDataShell.c
More file actions
59 lines (54 loc) · 1.09 KB
/
DataShell.c
File metadata and controls
59 lines (54 loc) · 1.09 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
//
// DataShell.c
//
//
// Created by Castro Bouquet Ildefonso on 26/10/2020.
//
/* Libraries */
#include<stdio.h>
#include<stdlib.h>
#include<string.h>
/* Custom Libraries */
#include"Motor.h"
#include"Vista.h"
/* Main Function */
int main (void)
{
/* Variables */
char fileName[40];
char **ptr;
float **ptr2;
int column,i,j;
/* Process */
menu(fileName);
column=readFile(fileName,&ptr);//read file and save it on array
/*
printf("--------------");
for(i=0;i<column;i++)
{
printf("%s",ptr[i]);
}
*/
format(&ptr,&ptr2,column);//use token to separate array
/*for(j=0;j<column;j++)
{
for(i=0;i<=200;i++)
{
if(ptr2[j][i]!=NULL)
{
if(i=0)
{
printf("%f",ptr2[j][i]);
}
else
{
printf(", %f",ptr2[j][i]);
}
}
else
{
break;
}
}
}*/
}