Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
L
Learn-C
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Issue analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Jaysimman G
Learn-C
Commits
e8ea0768
Commit
e8ea0768
authored
1 year ago
by
Jaysimman G
Browse files
Options
Downloads
Patches
Plain Diff
fcopy
parent
8663caec
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
.vscode/launch.json
+16
-0
16 additions, 0 deletions
.vscode/launch.json
a.out
+0
-0
0 additions, 0 deletions
a.out
fcopy.c
+16
-0
16 additions, 0 deletions
fcopy.c
overwrite.c
+6
-0
6 additions, 0 deletions
overwrite.c
with
38 additions
and
0 deletions
.vscode/launch.json
0 → 100644
+
16
−
0
View file @
e8ea0768
{
//
Use
IntelliSense
to
learn
about
possible
attributes.
//
Hover
to
view
descriptions
of
existing
attributes.
//
For
more
information
,
visit:
https://go.microsoft.com/fwlink/?linkid=
830387
"version"
:
"0.2.0"
,
"configurations"
:
[
{
"type"
:
"lldb"
,
"request"
:
"launch"
,
"name"
:
"Debug"
,
"program"
:
"${workspaceFolder}/<executable file>"
,
"args"
:
[],
"cwd"
:
"${workspaceFolder}"
}
]
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
a.out
+
0
−
0
View file @
e8ea0768
No preview for this file type
This diff is collapsed.
Click to expand it.
fcopy.c
0 → 100644
+
16
−
0
View file @
e8ea0768
#include
<stdio.h>
int
main
(){
FILE
*
fp1
,
*
fp2
;
fp1
=
fopen
(
"helloworld.c"
,
"r"
);
fp2
=
fopen
(
"overwrite.c"
,
"w"
);
while
(
1
){
char
c
=
fgetc
(
fp1
);
if
(
c
!=
EOF
){
fputc
(
c
,
fp2
);
}
else
{
break
;
}
}
printf
(
"file content copied successfully.
\n
"
);
fclose
(
fp1
);
fclose
(
fp2
);
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
overwrite.c
0 → 100644
+
6
−
0
View file @
e8ea0768
#include
<stdio.h>
int
main
()
{
printf
(
"Hello World !"
);
return
0
;
}
\ No newline at end of file
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment