TE
TechEcho
Home24h TopNewestBestAskShowJobs
GitHubTwitter
Home

TechEcho

A tech news platform built with Next.js, providing global tech news and discussions.

GitHubTwitter

Home

HomeNewestBestAskShowJobs

Resources

HackerNews APIOriginal HackerNewsNext.js

© 2025 TechEcho. All rights reserved.

Essential C (2003) [pdf]

228 pointsby kerckerabout 9 years ago

9 comments

e19293001about 9 years ago
I&#x27;ve gone through a lot of exercises[0][1] from this site especially on how to implement a linked list in C. The time spent from the tutorial was absolutely worth while. I feel happy and satisfied with my self after solving one problem at a time.<p>For those who already know the syntax of C but wanted to learn more, the links I mentioned is a good exercise and opens up a lot of possibilities on what you can implement. You&#x27;ll soon be able to realize the importance of linked list and why you&#x27;ll want to use a linked list instead of just plain arrays.<p>[0] - <a href="http:&#x2F;&#x2F;cslibrary.stanford.edu&#x2F;103&#x2F;LinkedListBasics.pdf" rel="nofollow">http:&#x2F;&#x2F;cslibrary.stanford.edu&#x2F;103&#x2F;LinkedListBasics.pdf</a><p>[1] - <a href="http:&#x2F;&#x2F;cslibrary.stanford.edu&#x2F;105&#x2F;LinkedListProblems.pdf" rel="nofollow">http:&#x2F;&#x2F;cslibrary.stanford.edu&#x2F;105&#x2F;LinkedListProblems.pdf</a>
评论 #11674505 未加载
评论 #11673545 未加载
mynameisnooneabout 9 years ago
Don&#x27;t use this. It&#x27;s really rusty and teaches bad habits superseded by C99.<p>Here&#x27;s a proper reference on C99 and C11:<p><a href="http:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;c" rel="nofollow">http:&#x2F;&#x2F;en.cppreference.com&#x2F;w&#x2F;c</a><p>And see also reallocarray.
评论 #11674987 未加载
partycoderabout 9 years ago
For many of these examples, there&#x27;s a debugger called &quot;ddd&quot; that can graph structures and can be useful.
评论 #11673662 未加载
eplanitabout 9 years ago
This is an enjoyable comment section (rare to say). The arguments about the pronunciation of the char keyword is all part of being C programmers. This is great. :-)
评论 #11673783 未加载
thatsadudeabout 9 years ago
This and &quot;C traps and pitfalls&quot; [1] were my favorites back to the days.<p>[1] <a href="http:&#x2F;&#x2F;www.literateprogramming.com&#x2F;ctraps.pdf" rel="nofollow">http:&#x2F;&#x2F;www.literateprogramming.com&#x2F;ctraps.pdf</a>
anintegerabout 9 years ago
Nice to see strlcpy in there. How do we get it into glibc?
评论 #11672603 未加载
评论 #11672092 未加载
Xophmeisterabout 9 years ago
The &quot;C Programming Cleverness and Ego Issues&quot; is a good bit of advice:<p>&gt; Build programs that do something cool rather than programs which flex the language&#x27;s syntax. Syntax -- who cares?<p>Otherwise, I&#x27;d never heard of&#x2F;seen the `#pragma once` preprocessor directive. (Not that I do <i>that</i> much C programming!) How common is it to use this over include guards?
评论 #11673786 未加载
campermanabout 9 years ago
&#x27;char ASCII character -- at least 8 bits. Pronounced &quot;car&quot;.&#x27;<p>Pronounced &#x27;car&#x27;? Bollocks. Pronounced char as in charred.
评论 #11672887 未加载
评论 #11672440 未加载
评论 #11672369 未加载
评论 #11672582 未加载
评论 #11672578 未加载
评论 #11672527 未加载
评论 #11672420 未加载
评论 #11672347 未加载
评论 #11673467 未加载
评论 #11672597 未加载
评论 #11672613 未加载
评论 #11673551 未加载
评论 #11675071 未加载
评论 #11672342 未加载
评论 #11674757 未加载
cbd1984about 9 years ago
This predates the stdint.h header, which gives you int32_t and so on.
评论 #11672087 未加载
评论 #11672304 未加载