Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
C
controle-c-003
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
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
This is an archived project. Repository and other project resources are read-only.
Show more breadcrumbs
florian.burgener
controle-c-003
Commits
022e2f16
Commit
022e2f16
authored
2 years ago
by
Florian Burgener
Browse files
Options
Downloads
Patches
Plain Diff
Add ex5
parent
c236e46c
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
ex5/Makefile
+20
-0
20 additions, 0 deletions
ex5/Makefile
ex5/ex5.c
+45
-0
45 additions, 0 deletions
ex5/ex5.c
with
65 additions
and
0 deletions
ex5/Makefile
0 → 100644
+
20
−
0
View file @
022e2f16
TARGET
=
ex5
LIBS
=
-lm
CC
=
gcc
CFLAGS
=
-g
-Wall
-Wextra
-pedantic
-fsanitize
=
address
-fsanitize
=
leak
.PHONY
:
default clean
default
:
$(TARGET)
ex4.o
:
ex5.c
$(
CC
)
$(
CFLAGS
)
-c
$<
-o
$@
run
:
$(TARGET)
./
$<
$(TARGET)
:
ex5.o
$(
CC
)
ex5.o
$(
CFLAGS
)
$(
LIBS
)
-o
$@
clean
:
rm
-f
*
.o
$(
TARGET
)
This diff is collapsed.
Click to expand it.
ex5/ex5.c
0 → 100644
+
45
−
0
View file @
022e2f16
/**
* @file ex5.c
* @author Florian Burgener
* @brief Exercice 5
* @version 1.0
* @date 2022-05-03
*
* @copyright Copyright (c) 2021
*
*/
#include
<math.h>
#include
<stdbool.h>
#include
<stdint.h>
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
int
main
()
{
// int32_t values_length = 5;
// double values[values_length];
// for (int32_t i = 0; i < values_length; i += 1) {
// double value;
// scanf("%lf", &value);
// values[i] = value;
// }
// int32_t values_length = 5;
// int32_t values[values_length];
// for (int32_t i = 0; i < values_length; i += 1) {
// int32_t value;
// scanf("%d", &value);
// values[i] = value;
// }
// char a[100];
// int32_t b;
// scanf("%s %d", a, &b);
// printf("%s %d\n", a, b);
printf
(
"ex1
\n
"
);
return
EXIT_SUCCESS
;
}
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