Mathc initiation/Fichiers h : x 16aa

Un livre de Wikilivres.


Sommaire

Installer ce fichier dans votre répertoire de travail.

x_h.h
utilitaire
/* ---------------------------------- */
/*  Save as :   x_h.h             */
/* ---------------------------------- */
#include    <stdio.h>
#include   <stdlib.h>
#include   <stddef.h>
#include    <ctype.h>
#include     <time.h>
#include     <math.h>
/* ------------------------------------ */
#include      "z_h.h"
/* ------------------------------------ */
/* ------------------------------------ */
void clrscrn(void)
{
  printf("\n\n\n\n\n\n\n\n\n\n"
         "\n\n\n\n\n\n\n\n\n\n"
         "\n\n\n\n\n\n\n\n\n\n");
}
/* ------------------------------------ */
void nlign(int n)
{
int i;

  for(i=0;i<n;i++)	
  
        printf("\n");
}/* ------------------------------------ */
void stop(void)
{
 printf(" Press return to continue. ");
 
 getchar();
}
/* -------------- Into a while() loop - */
int stop_w(void)
{
    printf("\n Press return to continue");
    printf("\n Press X      to stop    ");
    
 return(toupper(getchar())!='X');
}
/* ---------------------------------- */
/* ---------------------------------- 
   Call :  time_t t;  
           int i;     
       
         srand(time(&t)); 
           i = rnd_I(9);     
   ---------------------------------- */
int rp_I(
int maxI)
{
 return((rand() % maxI) + 1);
}
/* ---------------------------------- */
/* ---------------------------------- */


Ce fichier contient la bibliothèque des utilitaires.