"debut TD0"
This commit is contained in:
9
2020-2021/S3T_TP_00_REVISIONS/Demo_make/bonjour.c
Executable file
9
2020-2021/S3T_TP_00_REVISIONS/Demo_make/bonjour.c
Executable file
@ -0,0 +1,9 @@
|
||||
#include <stdio.h>
|
||||
#include <stdlib.h>
|
||||
#include "util_afficher.h"
|
||||
int main (int argc, char * argv[], char * envp[])
|
||||
{
|
||||
if (argc != 2) {fprintf (stderr, "\nSyntaxe : %s <chaine> \n\n", argv[0]); exit (1); }
|
||||
afficher_chaine(argv[1]);
|
||||
}
|
||||
|
9
2020-2021/S3T_TP_00_REVISIONS/Demo_make/util_afficher.c
Executable file
9
2020-2021/S3T_TP_00_REVISIONS/Demo_make/util_afficher.c
Executable file
@ -0,0 +1,9 @@
|
||||
/*********************************/
|
||||
/* Specification afficher_chaine */
|
||||
/*********************************/
|
||||
#include <stdio.h>
|
||||
#include "util_afficher.h"
|
||||
void afficher_chaine (char * chaine) {
|
||||
printf ("\n\n*** %s ! ***\n\n", chaine);
|
||||
}
|
||||
|
5
2020-2021/S3T_TP_00_REVISIONS/Demo_make/util_afficher.h
Executable file
5
2020-2021/S3T_TP_00_REVISIONS/Demo_make/util_afficher.h
Executable file
@ -0,0 +1,5 @@
|
||||
/*********************************/
|
||||
/* Specification afficher_chaine */
|
||||
/*********************************/
|
||||
void afficher_chaine (char * chaine);
|
||||
|
Reference in New Issue
Block a user