Lecture 27: November 27, 2019

Due: Homework #5, due December 6, 2019


  1. Greetings and felicitations!
  2. More C library functions
    1. More string functions (strchr, strrchr, strstr, strtok) [mem.c]
    2. Moving data around memory (memcpy,memcmp) [mem.c]
    3. Math library (ceil, floor, fabs, log, log10, exp, pow, fmod, modf, trigonometric functions, sqrt, isnan) [mhodge.c]
  3. gdb
    1. dyngets – find the two bugs
    2. Basic gdb commands
      1. backtrace (bt)
      2. print (p)
      3. breakpoint (b)
      4. continue (c)
      5. run (r)

UC Davis sigil
Matt Bishop
Office: 2209 Watershed Sciences
Phone: +1 (530) 752-8060
Email: [email protected]
ECS 36A, Programming and Problem Solving
Version of December 7, 2019 at 11:55PM

You can also obtain a PDF version of this.

Valid HTML 4.01 Transitional Built with BBEdit Built on a Macintosh