next up previous contents
Next: Memory Arrangement Up: Memory management Previous: Memory management   Contents

Examples&Exercises:

  1. Using Dynamic Memory Management Functions; http://siber.cankaya.edu.tr/OperatingSystems/cfiles/code45.c code45.c
  2. Dangling Pointers;
    char *str;
    str = malloc(sizeof(char) * 4)
    free(str);
    strcpy(str, "abc");
    
  3. A Problem Child; http://siber.cankaya.edu.tr/OperatingSystems/cfiles/code46.c code46.c.

next up previous contents
Next: Memory Arrangement Up: Memory management Previous: Memory management   Contents
Cem Ozdogan 2009-05-11