/*************************************************************************************************************************************/
/*                                                                                                                                   */
/*        I M P L E M E N A T I O N   S T A T I Q U E   E T   D Y N A M I Q U E   D E   C H A I N E S  :                             */
/*                                                                                                                                   */
/*                                                                                                                                   */
/*        Author of '$xtc/chaines.02$c' :                                                                                            */
/*                                                                                                                                   */
/*                    Jean-Francois Colonna (LACTAMME, 20210301114811).                                                              */
/*                                                                                                                                   */
/*************************************************************************************************************************************/

#include  <stdio.h>

extern    void      *malloc();

#define   N                                                                                                                             \
                    10000000

main()
          {
          int       n;

          char      *buf1;
          char      buf2[N];

          buf1=malloc(N);

          for       (n=0 ;  n<N ; n++)
                    {
                    *(buf1+n)=n;
                    *(buf2+n)=n;

                    if        (buf1[n] != buf2[n])
                                        /* Ainsi on teste que les ecritures :                                                        */
                                        /*                                                                                           */
                                        /*                  *(buf1+n)                                                                */
                                        /*                  buf1[n]                                                                  */
                                        /*                  *(buf2+n)                                                                */
                                        /*                  buf2[n]                                                                  */
                                        /*                                                                                           */
                                        /* sont "synonymes"...                                                                       */
                              {
                              fprintf(stderr,"err\n");
                              }
                    else
                              {
                              }
                    }
          }



Copyright © Jean-François Colonna, 2021-2023.
Copyright © CMAP (Centre de Mathématiques APpliquées) UMR CNRS 7641 / École polytechnique, Institut Polytechnique de Paris, 2021-2023.