next up previous
Next: Memory Arrangement Up: Memory Management Previous: Memory Management

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
Next: Memory Arrangement Up: Memory Management Previous: Memory Management
Cem Ozdogan 2009-07-31