Giter VIP home page Giter VIP logo

head-first-c-projects's Introduction

Head First C Projects

โš ๏ธ I was reminded that the definitive source for all C documentation is in the man pages. For example, there is no explanation of the atoi before it is first used, but knowing that anything in the book is also covered in more depth in the Manual will help get over this missing information (without having to search the Internet).

Chapter Zero

Get on a Linux (Bash) command line. I chose to just use my PopOS desktop (which already has gcc 10.3 installed) but I also started making a Docker container to keep with modern development practices.

I set the CFLAGS so that make works by default without a Makefile at the moment:

export CFLAGS="-Wall -Wextra -Werror -O0 -g -fsanitize=address -fno-omit-frame-pointer -finstrument-functions"

I went ahead and added these to ~/.bashrc.

We'll be following Linux Kernel coding style

Related

head-first-c-projects's People

Contributors

rwxrob avatar

Stargazers

Gregory Bowne avatar Meza avatar  avatar Dan Bechard avatar

Watchers

 avatar  avatar

Forkers

lzy-v giddy11

head-first-c-projects's Issues

Unsafe code

You have a buffer overflow somewhere in your code, but I'll leave finding it as an exercise to the reader. ;)

rewrite it in other languages

Rewriting it in Rust would be an interesting task for learning Rust. But it wouldn't be that much different, just a bit easier.

But rewriting it in something like Ruby would be a lot easier and shorter, and demonstrate why you usually don't use C anymore, if you don't have to.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.