https://github.com/phdenzel/c-info
https://github.com/phdenzel/c-info
c hello-world sdl2
Last synced: about 2 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/phdenzel/c-info
- Owner: phdenzel
- License: mit
- Created: 2017-06-15T21:07:05.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-22T07:34:51.000Z (about 9 years ago)
- Last Synced: 2025-02-26T06:35:01.494Z (over 1 year ago)
- Topics: c, hello-world, sdl2
- Language: C
- Size: 6.84 KB
- Stars: 0
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.org
- License: LICENSE
Awesome Lists containing this project
README
#+TITLE: c-info
#+AUTHOR: phdenzel
A few short C programs that print out some basic info on types, structs, arrays, and loops.
It also includes some basic SDL programs which could get someone started on a self-programmed game...
/Hint/: try the arrows on your keyboard when running ~sdl_runtime~.
*** Compile
To compile the info programs, type in the terminal for example:
#+BEGIN_SRC shell :exports none
gcc -o info_types info_types.c
chmod 755 info_types
./info_types
#+END_SRC
To compile the SDL examples, run the command:
#+BEGIN_SRC shell :export none
./make_sdl.sh
#+END_SRC
This compiles the programs, if the necessary SDL libraries have been installed.