C Standard Library

C Standard Library

2h 6mIntermediate2023-10-23

Authors

Eduardo Corpeño

Eduardo Corpeño

Electrical Engineer, Computer Programmer, and Teacher for 15+ years

Course details

Get up to speed with the C standard library, the standardized library of functions available for the C programming language. This course covers over 60 of the most useful and popular functions, as grouped in the header files stdio.h, stdlib.h, stdint.h, string.h, and math.h. Instructor Eduardo Corpeño starts by reviewing the library's organization and familiarizing you with the header files and syntax. Then he shows how to accomplish a variety of tasks with the library: processing input and output, managing application memory, generating random numbers, sorting and searching for data, manipulating text strings, and performing math. Each chapter includes numerous examples that show the functions in practice, along with programming challenges that allow you to test your new knowledge and skills.

Learning objectives
Working with header files
C constants and types
Unformatted and formatted input/output
Accessing files with C functions
Generating random numbers
Converting strings
Sorting and searching for data
Manipulating strings
Using mathematical functions

Skills covered

CProgramming LanguagesOpen SourceSoftware DevelopmentDeep Dive (X:Y)

Concepts

Introduction

  • Get up to speed with the C standard library
  • What you should know

The C Standard Library

  • Overview of the library
  • Header files
  • Constants and types

Input and Output Library - stdio.h

  • Unformatted I O
  • Unformatted I O example
  • Formatted I O
  • Formatted I O example
  • File access
  • File access example
  • Challenge - Copying a text file
  • Solution - Copying a text file

General Purpose - stdlib.h

  • Memory allocation
  • Memory allocation example
  • Random number generation
  • Random number generation example
  • String conversion
  • String conversion example
  • Sort and search
  • Sort and search main
  • Sort and search functions
  • Challenge - Let's get random
  • Solution - Let's get random

String Functions - string.h

  • String manipulation
  • String manipulation example
  • String examination
  • String examination example
  • Memory chunk operations
  • Memory chunk operations example
  • Challenge - Find a special word
  • Solution - Find a special word

Mathematical Functions - math.h

  • Mathematical functions
  • Rounding and truncating
  • Rounding and truncating example
  • Trigonometric functions
  • Trigonometric functions example
  • Powers and exponentials
  • Powers and exponentials example
  • Challenge - Polar coordinate conversion
  • Solution - Polar coordinate conversion
  • C23 update

Conclusion

  • Next steps
80,000 Toman