Outline for May 16, 2025

Reading: C Notes text §20, 29, 51; zyBooks text §2.19, 5.12
Assignments: Homework #3, due May 16, 2025

  1. Sorting [qsort1.c, qsort2.c, qsort3.c, qsort4.c]
      void qsort(void base, size_t num, size_t size, int (*cmp)(const void *, const void *))

  2. item Random and pseudorandom number generation
    1. Pseudorandom numbers vs. random numbers
    2. Pseudorandom number generators rand, random [prand1.c, prand2.c]
    3. Seeding a pseudorandom number generator [prand1.c, prand2.c]
    4. Obtaining random numbers [getrandom.c]

  3. String functions [strings.c]

  4. Copy, compare sequential bytes in memory [mem.c]

  5. Buffer overflow on the stack [bad2.c]

UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: mabishop@ucdavis.edu
ECS 36A, Programming and Problem Solving
Version of May 13, 2025 at 10:14PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh