Implementing Modular C Programming with Dynamic Libraries
Modular C Programming
C programs typically separtae decalrations into .h header files, implementations into .c source files, and main logic into main.c.
Consider a function that returns the maximum of two numbers:
main.c
#include <stdio.h>
#include "NumberUtils.h"
int main() {
int x = 42, y = 17;
printf("Max of %d ...
Posted on Fri, 31 Jul 2026 16:36:28 +0000 by aQ
C/C++ System Development Reference: Debugging, Libraries, and Build Tools
Locating Segmentation Faults with GDB and Core Dumps
Ensure the source code is compiled with the -g flag to embed debugging symbols.
Check core file size limit: Run ulimit -c. A return value of 0 means core dumps are disabled; unlimited means no size restriction. Use ulimit -a to view all resource limits.
Enable unlimited core size: ulimit -c ...
Posted on Fri, 29 May 2026 19:10:11 +0000 by globalinsites