2025-08-25 10:42:47 +12:00
2025-08-24 14:41:12 +12:00
2025-08-23 19:34:37 -07:00
2025-08-24 14:39:56 +12:00
2025-08-24 14:39:56 +12:00
2025-08-24 20:47:59 +12:00

c_command_pattern

a simple example of how to implement the command pattern in c. check main.c for the implementation

how to build and run it

this demo uses a simple build system called nob a header only build system for c projects.

to build run these command in the root of the project:


# bootstraps the build system
> gcc nob.c -o nob

# runs the build system
> ./nob

# runs the program
> ./build/main 

and if you have a differnt complier you want to use that is posix compliant just change the CC macro in the nob.c with your one.

Description
a simple example of how to implement the command pattern in c
Readme GPL-3.0 74 KiB
Languages
C 100%