Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
saeed
SSHC
Commits
b2ed57d6
Commit
b2ed57d6
authored
Jan 28, 2018
by
saeed
Browse files
more improvement on sshval.c
parent
b17911ae
Changes
1
Hide whitespace changes
Inline
Side-by-side
sshval.c
View file @
b2ed57d6
...
...
@@ -78,7 +78,7 @@ int main(int argc, char *argv[]){
}
}
printf
(
"number of fields is %d
\n
"
,
nfl
);
//
printf("number of fields is %d \n", nfl);
rewind
(
FS
);
...
...
@@ -91,7 +91,6 @@ int main(int argc, char *argv[]){
while
((
cc
=
fgetc
(
FS
))
!=
EOF
){
if
(
cc
!=
','
){
if
(
cc
==
'\n'
){
printf
(
"=================end of line =========================
\n
"
);
ne
=
0
;
nl
+=
1
;
if
(
nl
==
1
)
break
;
...
...
@@ -104,7 +103,7 @@ int main(int argc, char *argv[]){
else
{
cfl
[
nfl
]
=
malloc
(
sizeof
(
char
)
*
ne
);
for
(
int
ii
=
0
;
ii
<
ne
;
++
ii
)
cfl
[
nfl
][
ii
]
=
field
[
ii
];
printf
(
"%s
\n
"
,
cfl
[
nfl
]);
//
printf("%s \n",cfl[nfl]);
nfl
+=
1
;
for
(
int
ii
=
0
;
ii
<
ne
;
++
ii
)
field
[
ii
]
=
' '
;
ne
=
0
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment