codybartfast / knr Goto Github PK
View Code? Open in Web Editor NEWExercises from The C Programming Language
License: MIT License
Exercises from The C Programming Language
License: MIT License
Since these values are being compared directly to 0
it might be a good idea to make it explicit like this enum { OK=0, ERROR };
.
There is also stdbool.h
which defines true
and false
if that appeals.
Originally posted by @klampworks in #2
Maybe consider have one pointer and then making the other variables int
offsets instead.
I think it will make this function much simpler.
Originally posted by @klampworks in #2
Do these need to be **
? You can use &
to get the address of a variable at any time, you don't necessarily need use the maximum number of stars in the declaration.
Originally posted by @klampworks in #2
I think parsearguments
would be a better name to explain what this function does.
Originally posted by @pbruyninckx in #2
Definately going to have to think about/play with that one.
Originally posted by @codybartfast in #2
Just read through your solution for this one, it's an elegant and simple solution to a complex problem. Kudos dude! ๐ฅ
Is this used? Consider adding static
to functions you only intend to use in this C file so the compiler can tell you it's unused.
Originally posted by @klampworks in #2
What would happen if these malloc
s fail?
Originally posted by @klampworks in #2
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.