What’s the difference between “C system calls” and “C library routines”?

System calls are operating system functions, like on UNIX, the malloc() function is built on top of the sbrk() system call (for resizing process memory space).

Libraries are just application code that’s not part of the operating system and will often be available on more than one OS. They’re basically the same as function calls within your own program.

The line can be a little blurry but just view system calls as kernel-level functionality.

Leave a Comment