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
|
/*
** File : decoupage.c
** Author : kal
** Created : Wed Aug 2 16:49:59 2006
*/
#include <stdio.h>
#include <stdlib.h>
#include "decoupage.h"
/* macros ============================================================== */
#define PI 3.14
/* constants =========================================================== */
const int pi = PI;
/* types =============================================================== */
typedef int entier;
/* structures ========================================================== */
struct temps
{
int heure;
int minute;
int seconde;
};
/* private variables =================================================== */
static struct temps temps;
/* private functions =================================================== */
static int
ma_fonction_privee(void)
{
myGlobaleVar = 1;
return EXIT_SUCCESS;
}
/* internal public functions =========================================== */
/* entry points ======================================================== */
int
main()
{
printf("myGlobaleVar = %d\n", myGlobaleVar);
printf("Appel de ma_fonction_privee\n");
ma_fonction_privee();
printf("myGlobaleVar = %d\n", myGlobaleVar);
return(EXIT_SUCCESS);
}
/* public variables ==================================================== */
int myGlobaleVar; |
Partager