example3.cpp 205 B

12345678910111213141516
  1. #include <stdlib.h>
  2. #include <duma.h>
  3. int main()
  4. {
  5. int *pi;
  6. int i;
  7. #ifdef DUMA_EXPLICIT_INIT
  8. duma_init();
  9. #endif
  10. pi = (int*)malloc(10*sizeof(int));
  11. for(i=0; i<10; ++i)
  12. pi[i] = i;
  13. return 0;
  14. }