Working with Functions in C
Functions are a core component of the C programming language . This course will teach you everything you need to know about functions in C including user-defined functions and functions that are available within the C standard library.
What you'll learn
Without a proper understanding of functions, a software developer is limited in terms of their ability to create modular systems that are easy to reason about and maintain.
In this course, Working with Functions in C, you will learn how to use functions in order to create programs and applications in C that are easy to test and easy to maintain:
- learn what functions are in C and why they are so important
- explore how to create your own user-defined functions in order to create modular, reusable code that is easy to maintain and test
- take a deep-dive into the C standard library functions that are available
Table of contents
- Introduction 1m
- General Library Functions - stdlib.h 9m
- Demo: General Library Functions 10m
- Input And Output: stdio.h 9m
- Demo: Input And Output Functions Part One 8m
- Demo: Input And Output Functions Part Two 7m
- Variadic Functions - stdarg.h 1m
- Demo: Variadic Functions 3m
- Time Functions - time.h 3m
- Demo: Time Functions 6m
- Locale Functions - locale.h 2m
- Demo: Locale Functions 2m
- Math Functions - math.h 2m
- Demo: Math Functions 2m
- Summary 1m
- Introduction 2m
- String Functions - string.h 8m
- Demo: String Functions 12m
- Character Testing - ctype.h 2m
- Demo: Character Testing Functions 5m
- Error Handling Macros - errno.h 2m
- Demo: Error Handling Macros 4m
- Non-local Jumping - setjmp.h 2m
- Demo: Non-local Jumping 4m
- Runtime Assertions - assert.h 1m
- Demo: Runtime Assertions 2m
- Process Signaling - signal.h 5m
- Demo: Process Signaling 3m
- Summary 2m
In this course, you will learn about function anatomy, function declarations and prototypes, value and reference passing, and C standard library functions/marcros.
Before taking this course, you should be familiar with the basics of the C syntax and programming fundamentals.
A user-defined function is a single comprehensive unit that contains a block of code to perform a specific task.
The C standard library functions include macros, type definitions and functions for tasks such as string handling, mathematical computations, input/output processing, memory management, and other operating system services.
Some benefits of C functions are: avoiding the repitition of code, increasing program readability, reducing the chance of erros, and easier modification.