nomalloc.c
changeset 8 96d16dfe787a
parent 0 af501b0c1716
child 9 c3fecc82ade6
equal deleted inserted replaced
7:a1aa30f0f904 8:96d16dfe787a
     3  * $Source: /development/c/demos/nomalloc.c,v $
     3  * $Source: /development/c/demos/nomalloc.c,v $
     4  *
     4  *
     5  */
     5  */
     6 
     6 
     7 #include <stdio.h>
     7 #include <stdio.h>
       
     8 #include <stdlib.h>
     8 
     9 
     9 struct Names {
    10 struct Names {
    10     char *name;
    11     char *name;
    11     int age;
    12     int age;
    12 };
    13 };
    28     struct Names names;
    29     struct Names names;
    29 
    30 
    30     setStruct (&names);
    31     setStruct (&names);
    31     printStruct (&names);
    32     printStruct (&names);
    32 
    33 
    33     return 0;
    34     return EXIT_SUCCESS;
    34 }
    35 }